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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 using RenderWidgetInitializedCallback = void (*)(RenderWidget*); 146 using RenderWidgetInitializedCallback = void (*)(RenderWidget*);
147 static void InstallCreateHook( 147 static void InstallCreateHook(
148 CreateRenderWidgetFunction create_render_widget, 148 CreateRenderWidgetFunction create_render_widget,
149 RenderWidgetInitializedCallback render_widget_initialized_callback); 149 RenderWidgetInitializedCallback render_widget_initialized_callback);
150 150
151 // Closes a RenderWidget that was created by |CreateForFrame|. 151 // Closes a RenderWidget that was created by |CreateForFrame|.
152 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. 152 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
153 // https://crbug.com/545684 153 // https://crbug.com/545684
154 virtual void CloseForFrame(); 154 virtual void CloseForFrame();
155 155
156 int32_t client_id() const { return client_id_; }
157
156 int32_t routing_id() const { return routing_id_; } 158 int32_t routing_id() const { return routing_id_; }
157 void SetRoutingID(int32_t routing_id); 159 void SetRoutingID(int32_t routing_id);
158 160
159 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 161 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
160 virtual blink::WebWidget* GetWebWidget() const; 162 virtual blink::WebWidget* GetWebWidget() const;
161 const gfx::Size& size() const { return size_; } 163 const gfx::Size& size() const { return size_; }
162 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } 164 bool is_fullscreen_granted() const { return is_fullscreen_granted_; }
163 blink::WebDisplayMode display_mode() const { return display_mode_; } 165 blink::WebDisplayMode display_mode() const { return display_mode_; }
164 bool is_hidden() const { return is_hidden_; } 166 bool is_hidden() const { return is_hidden_; }
165 // Temporary for debugging purposes... 167 // Temporary for debugging purposes...
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // Tell the browser about the actions permitted for a new touch point. 595 // Tell the browser about the actions permitted for a new touch point.
594 void setTouchAction(blink::WebTouchAction touch_action) override; 596 void setTouchAction(blink::WebTouchAction touch_action) override;
595 597
596 // Called when value of focused text field gets dirty, e.g. value is modified 598 // Called when value of focused text field gets dirty, e.g. value is modified
597 // by script, not by user input. 599 // by script, not by user input.
598 void didUpdateTextOfFocusedElementByNonUserInput() override; 600 void didUpdateTextOfFocusedElementByNonUserInput() override;
599 601
600 // Sends an ACK to the browser process during the next compositor frame. 602 // Sends an ACK to the browser process during the next compositor frame.
601 void OnWaitNextFrameForTests(int routing_id); 603 void OnWaitNextFrameForTests(int routing_id);
602 604
605 // Process ID of the browser process. It is used for constructing FrameSinkIds
606 // for the RenderWidgetCompositor
607 int32_t client_id_;
608
603 // Routing ID that allows us to communicate to the parent browser process 609 // Routing ID that allows us to communicate to the parent browser process
604 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 610 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
605 int32_t routing_id_; 611 int32_t routing_id_;
606 612
607 // Dependencies for initializing a compositor, including flags for optional 613 // Dependencies for initializing a compositor, including flags for optional
608 // features. 614 // features.
609 CompositorDependencies* const compositor_deps_; 615 CompositorDependencies* const compositor_deps_;
610 616
611 // Use GetWebWidget() instead of using webwidget_internal_ directly. 617 // Use GetWebWidget() instead of using webwidget_internal_ directly.
612 // We are responsible for destroying this object via its Close method. 618 // We are responsible for destroying this object via its Close method.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 // Stores edit commands associated to the next key event. 826 // Stores edit commands associated to the next key event.
821 // Will be cleared as soon as the next key event is processed. 827 // Will be cleared as soon as the next key event is processed.
822 EditCommands edit_commands_; 828 EditCommands edit_commands_;
823 829
824 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 830 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
825 }; 831 };
826 832
827 } // namespace content 833 } // namespace content
828 834
829 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 835 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698