mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 18:49:52 +01:00
047e8f9349
- Building on macOS now requires the 10.15 SDK. Xcode 11.3 is recommended as Xcode 11.4 is not currently supported (see https://crbug.com/1065146). - Jumbo build configuration is no longer supported. Chromium is skipping the M82 release and consequently no CEF 4085 branch will be created. For details on the Chromium decision see https://groups.google.com/a/chromium.org/d/msg/chromium-dev/Vn7uzglqLz0/JItlSrZxBAAJ
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
diff --git chrome/browser/printing/print_job_worker.cc chrome/browser/printing/print_job_worker.cc
|
|
index 33e17f0df356..04dd4798755c 100644
|
|
--- chrome/browser/printing/print_job_worker.cc
|
|
+++ chrome/browser/printing/print_job_worker.cc
|
|
@@ -134,6 +134,7 @@ PrintJobWorker::PrintJobWorker(int render_process_id, int render_frame_id)
|
|
PrintingContext::Create(printing_context_delegate_.get())),
|
|
thread_("Printing_Worker") {
|
|
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
|
+ printing_context_->set_render_ids(render_process_id, render_frame_id);
|
|
}
|
|
|
|
PrintJobWorker::~PrintJobWorker() {
|
|
diff --git printing/printing_context.h printing/printing_context.h
|
|
index 6a5a7c90ef5b..04c0535046dc 100644
|
|
--- printing/printing_context.h
|
|
+++ printing/printing_context.h
|
|
@@ -131,6 +131,13 @@ class PRINTING_EXPORT PrintingContext {
|
|
|
|
int job_id() const { return job_id_; }
|
|
|
|
+ void set_render_ids(int render_process_id, int render_frame_id) {
|
|
+ render_process_id_ = render_process_id;
|
|
+ render_frame_id_ = render_frame_id;
|
|
+ }
|
|
+ int render_process_id() const { return render_process_id_; }
|
|
+ int render_frame_id() const { return render_frame_id_; }
|
|
+
|
|
protected:
|
|
explicit PrintingContext(Delegate* delegate);
|
|
|
|
@@ -155,6 +162,10 @@ class PRINTING_EXPORT PrintingContext {
|
|
// The job id for the current job. The value is 0 if no jobs are active.
|
|
int job_id_;
|
|
|
|
+ // Routing IDs for the frame that owns this object.
|
|
+ int render_process_id_ = 0;
|
|
+ int render_frame_id_ = 0;
|
|
+
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(PrintingContext);
|
|
};
|