mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
diff --git chrome/browser/printing/printer_query.cc chrome/browser/printing/printer_query.cc
|
|
index 4b1775f4a882f..44d128154335a 100644
|
|
--- chrome/browser/printing/printer_query.cc
|
|
+++ chrome/browser/printing/printer_query.cc
|
|
@@ -125,6 +125,7 @@ PrinterQuery::PrinterQuery(content::GlobalRenderFrameHostId rfh_id)
|
|
rfh_id_(rfh_id),
|
|
cookie_(PrintSettings::NewCookie()) {
|
|
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
|
+ printing_context_->set_render_ids(rfh_id.child_id, rfh_id.frame_routing_id);
|
|
}
|
|
|
|
PrinterQuery::~PrinterQuery() {
|
|
diff --git printing/printing_context.h printing/printing_context.h
|
|
index 3a98838e27621..f5cbe1c561189 100644
|
|
--- printing/printing_context.h
|
|
+++ printing/printing_context.h
|
|
@@ -217,6 +217,13 @@ class COMPONENT_EXPORT(PRINTING) PrintingContext {
|
|
void SetJobId(int job_id);
|
|
#endif
|
|
|
|
+ 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:
|
|
PrintingContext(Delegate* delegate,
|
|
OutOfProcessBehavior out_of_process_behavior);
|
|
@@ -251,6 +258,10 @@ class COMPONENT_EXPORT(PRINTING) PrintingContext {
|
|
// management.
|
|
int job_id_ = kNoPrintJobId;
|
|
|
|
+ // Routing IDs for the frame that owns this object.
|
|
+ int render_process_id_ = 0;
|
|
+ int render_frame_id_ = 0;
|
|
+
|
|
private:
|
|
const OutOfProcessBehavior out_of_process_behavior_;
|
|
};
|