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