Chromium Code Reviews| 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> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
| 15 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "content/browser/child_process_launcher.h" | 16 #include "content/browser/child_process_launcher.h" |
| 17 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 17 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
|
Michael van Ouwerkerk
2014/05/08 13:20:02
Delete this as it's no longer used.
jam
2014/05/08 15:04:58
Done.
| |
| 18 #include "content/browser/power_monitor_message_broadcaster.h" | 18 #include "content/browser/power_monitor_message_broadcaster.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "content/public/browser/gpu_data_manager_observer.h" | 20 #include "content/public/browser/gpu_data_manager_observer.h" |
| 21 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
| 22 #include "ipc/ipc_channel_proxy.h" | 22 #include "ipc/ipc_channel_proxy.h" |
| 23 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
| 24 #include "mojo/embedder/scoped_platform_handle.h" | 24 #include "mojo/embedder/scoped_platform_handle.h" |
| 25 #include "mojo/public/cpp/bindings/remote_ptr.h" | 25 #include "mojo/public/cpp/bindings/remote_ptr.h" |
| 26 #include "mojo/public/interfaces/shell/shell.mojom.h" | 26 #include "mojo/public/interfaces/shell/shell.mojom.h" |
| 27 | 27 |
| 28 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; | 28 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; |
| 29 | 29 |
| 30 namespace base { | 30 namespace base { |
| 31 class CommandLine; | 31 class CommandLine; |
| 32 class MessageLoop; | 32 class MessageLoop; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace gfx { | 35 namespace gfx { |
| 36 class Size; | 36 class Size; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace content { | 39 namespace content { |
| 40 class AudioRendererHost; | 40 class AudioRendererHost; |
| 41 class BrowserDemuxerAndroid; | 41 class BrowserDemuxerAndroid; |
| 42 class GeolocationDispatcherHost; | |
| 43 class GpuMessageFilter; | 42 class GpuMessageFilter; |
| 44 class MessagePortMessageFilter; | 43 class MessagePortMessageFilter; |
| 45 class MojoApplicationHost; | 44 class MojoApplicationHost; |
| 46 class PeerConnectionTrackerHost; | 45 class PeerConnectionTrackerHost; |
| 47 class RendererMainThread; | 46 class RendererMainThread; |
| 48 class RenderProcessHostMojoImpl; | 47 class RenderProcessHostMojoImpl; |
| 49 class RenderWidgetHelper; | 48 class RenderWidgetHelper; |
| 50 class RenderWidgetHost; | 49 class RenderWidgetHost; |
| 51 class RenderWidgetHostImpl; | 50 class RenderWidgetHostImpl; |
| 52 class RenderWidgetHostViewFrameSubscriber; | 51 class RenderWidgetHostViewFrameSubscriber; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 // any RenderViewHosts that are swapped out. | 157 // any RenderViewHosts that are swapped out. |
| 159 int GetActiveViewCount(); | 158 int GetActiveViewCount(); |
| 160 | 159 |
| 161 // Start and end frame subscription for a specific renderer. | 160 // Start and end frame subscription for a specific renderer. |
| 162 // This API only supports subscription to accelerated composited frames. | 161 // This API only supports subscription to accelerated composited frames. |
| 163 void BeginFrameSubscription( | 162 void BeginFrameSubscription( |
| 164 int route_id, | 163 int route_id, |
| 165 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 164 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
| 166 void EndFrameSubscription(int route_id); | 165 void EndFrameSubscription(int route_id); |
| 167 | 166 |
| 168 scoped_refptr<GeolocationDispatcherHost> | |
| 169 geolocation_dispatcher_host() const { | |
| 170 return make_scoped_refptr(geolocation_dispatcher_host_); | |
| 171 } | |
| 172 | |
| 173 #if defined(ENABLE_WEBRTC) | 167 #if defined(ENABLE_WEBRTC) |
| 174 // Fires the webrtc log message callback with |message|, if callback is set. | 168 // Fires the webrtc log message callback with |message|, if callback is set. |
| 175 void WebRtcLogMessage(const std::string& message); | 169 void WebRtcLogMessage(const std::string& message); |
| 176 #endif | 170 #endif |
| 177 | 171 |
| 178 scoped_refptr<ScreenOrientationDispatcherHost> | 172 scoped_refptr<ScreenOrientationDispatcherHost> |
| 179 screen_orientation_dispatcher_host() const; | 173 screen_orientation_dispatcher_host() const; |
| 180 | 174 |
| 181 // Register/unregister the host identified by the host id in the global host | 175 // Register/unregister the host identified by the host id in the global host |
| 182 // list. | 176 // list. |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 404 | 398 |
| 405 // Forwards power state messages to the renderer process. | 399 // Forwards power state messages to the renderer process. |
| 406 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 400 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
| 407 | 401 |
| 408 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 402 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 409 | 403 |
| 410 #if defined(OS_ANDROID) | 404 #if defined(OS_ANDROID) |
| 411 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 405 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 412 #endif | 406 #endif |
| 413 | 407 |
| 414 // Message filter for geolocation messages. | |
| 415 GeolocationDispatcherHost* geolocation_dispatcher_host_; | |
| 416 | |
| 417 #if defined(ENABLE_WEBRTC) | 408 #if defined(ENABLE_WEBRTC) |
| 418 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 409 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 419 #endif | 410 #endif |
| 420 | 411 |
| 421 // Message filter and dispatcher for screen orientation. | 412 // Message filter and dispatcher for screen orientation. |
| 422 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | 413 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
| 423 | 414 |
| 424 int worker_ref_count_; | 415 int worker_ref_count_; |
| 425 | 416 |
| 426 // Records the time when the process starts surviving for workers for UMA. | 417 // Records the time when the process starts surviving for workers for UMA. |
| 427 base::TimeTicks survive_for_worker_start_time_; | 418 base::TimeTicks survive_for_worker_start_time_; |
| 428 | 419 |
| 429 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 420 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 430 | 421 |
| 431 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 422 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 432 }; | 423 }; |
| 433 | 424 |
| 434 } // namespace content | 425 } // namespace content |
| 435 | 426 |
| 436 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 427 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |