| OLD | NEW |
| 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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // copied over. | 229 // copied over. |
| 230 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, | 230 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, |
| 231 CommandLine* renderer_cmd) const; | 231 CommandLine* renderer_cmd) const; |
| 232 | 232 |
| 233 // Callers can reduce the RenderProcess' priority. | 233 // Callers can reduce the RenderProcess' priority. |
| 234 void SetBackgrounded(bool backgrounded); | 234 void SetBackgrounded(bool backgrounded); |
| 235 | 235 |
| 236 // Handle termination of our process. | 236 // Handle termination of our process. |
| 237 void ProcessDied(bool already_dead); | 237 void ProcessDied(bool already_dead); |
| 238 | 238 |
| 239 void OnGpuSwitch(); |
| 240 |
| 239 // The count of currently visible widgets. Since the host can be a container | 241 // The count of currently visible widgets. Since the host can be a container |
| 240 // for multiple widgets, it uses this count to determine when it should be | 242 // for multiple widgets, it uses this count to determine when it should be |
| 241 // backgrounded. | 243 // backgrounded. |
| 242 int32 visible_widgets_; | 244 int32 visible_widgets_; |
| 243 | 245 |
| 244 // Does this process have backgrounded priority. | 246 // Does this process have backgrounded priority. |
| 245 bool backgrounded_; | 247 bool backgrounded_; |
| 246 | 248 |
| 247 // Used to allow a RenderWidgetHost to intercept various messages on the | 249 // Used to allow a RenderWidgetHost to intercept various messages on the |
| 248 // IO thread. | 250 // IO thread. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 bool supports_browser_plugin_; | 326 bool supports_browser_plugin_; |
| 325 | 327 |
| 326 // Indicates whether this is a RenderProcessHost of a Browser Plugin guest | 328 // Indicates whether this is a RenderProcessHost of a Browser Plugin guest |
| 327 // renderer. | 329 // renderer. |
| 328 bool is_guest_; | 330 bool is_guest_; |
| 329 | 331 |
| 330 // Forwards messages between WebRTCInternals in the browser process | 332 // Forwards messages between WebRTCInternals in the browser process |
| 331 // and PeerConnectionTracker in the renderer process. | 333 // and PeerConnectionTracker in the renderer process. |
| 332 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; | 334 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; |
| 333 | 335 |
| 336 base::Callback<void()> gpu_switch_callback_; |
| 337 |
| 334 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 338 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 335 }; | 339 }; |
| 336 | 340 |
| 337 } // namespace content | 341 } // namespace content |
| 338 | 342 |
| 339 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 343 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |