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