Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Unified Diff: content/renderer/render_widget.h

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)
Patch Set: Set client_id via a command line switch Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 5bde3b184419e453b372dd7994374c0d46c9717c..6de396e27a2fc411176c59e66fcd46fa1465bcb2 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -153,6 +153,8 @@ class CONTENT_EXPORT RenderWidget
// https://crbug.com/545684
virtual void CloseForFrame();
+ int32_t client_id() const { return client_id_; }
+
int32_t routing_id() const { return routing_id_; }
void SetRoutingID(int32_t routing_id);
@@ -600,6 +602,10 @@ class CONTENT_EXPORT RenderWidget
// Sends an ACK to the browser process during the next compositor frame.
void OnWaitNextFrameForTests(int routing_id);
+ // Process ID of the browser process. It is used for constructing FrameSinkIds
+ // for the RenderWidgetCompositor
+ int32_t client_id_;
+
// Routing ID that allows us to communicate to the parent browser process
// RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
int32_t routing_id_;

Powered by Google App Engine
This is Rietveld 408576698