| 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 22 matching lines...) Expand all Loading... |
| 33 namespace gfx { | 33 namespace gfx { |
| 34 class Size; | 34 class Size; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace content { | 37 namespace content { |
| 38 class AudioRendererHost; | 38 class AudioRendererHost; |
| 39 class BrowserDemuxerAndroid; | 39 class BrowserDemuxerAndroid; |
| 40 class GeolocationDispatcherHost; | 40 class GeolocationDispatcherHost; |
| 41 class GpuMessageFilter; | 41 class GpuMessageFilter; |
| 42 class MessagePortMessageFilter; | 42 class MessagePortMessageFilter; |
| 43 class MojoChannelInit; |
| 43 class PeerConnectionTrackerHost; | 44 class PeerConnectionTrackerHost; |
| 44 class RendererMainThread; | 45 class RendererMainThread; |
| 45 class RenderWidgetHelper; | 46 class RenderWidgetHelper; |
| 46 class RenderWidgetHost; | 47 class RenderWidgetHost; |
| 47 class RenderWidgetHostImpl; | 48 class RenderWidgetHostImpl; |
| 48 class RenderWidgetHostViewFrameSubscriber; | 49 class RenderWidgetHostViewFrameSubscriber; |
| 49 class ScreenOrientationDispatcherHost; | 50 class ScreenOrientationDispatcherHost; |
| 50 class StoragePartition; | 51 class StoragePartition; |
| 51 class StoragePartitionImpl; | 52 class StoragePartitionImpl; |
| 52 | 53 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 void ProcessDied(bool already_dead); | 288 void ProcessDied(bool already_dead); |
| 288 | 289 |
| 289 virtual void OnGpuSwitching() OVERRIDE; | 290 virtual void OnGpuSwitching() OVERRIDE; |
| 290 | 291 |
| 291 #if defined(ENABLE_WEBRTC) | 292 #if defined(ENABLE_WEBRTC) |
| 292 // Sends |file_for_transit| to the render process. | 293 // Sends |file_for_transit| to the render process. |
| 293 void SendAecDumpFileToRenderer(IPC::PlatformFileForTransit file_for_transit); | 294 void SendAecDumpFileToRenderer(IPC::PlatformFileForTransit file_for_transit); |
| 294 void SendDisableAecDumpToRenderer(); | 295 void SendDisableAecDumpToRenderer(); |
| 295 #endif | 296 #endif |
| 296 | 297 |
| 298 // Establishes the mojo channel to the renderer. |
| 299 void CreateMojoChannel(); |
| 300 |
| 297 // The registered IPC listener objects. When this list is empty, we should | 301 // The registered IPC listener objects. When this list is empty, we should |
| 298 // delete ourselves. | 302 // delete ourselves. |
| 299 IDMap<IPC::Listener> listeners_; | 303 IDMap<IPC::Listener> listeners_; |
| 300 | 304 |
| 301 // The count of currently visible widgets. Since the host can be a container | 305 // The count of currently visible widgets. Since the host can be a container |
| 302 // for multiple widgets, it uses this count to determine when it should be | 306 // for multiple widgets, it uses this count to determine when it should be |
| 303 // backgrounded. | 307 // backgrounded. |
| 304 int32 visible_widgets_; | 308 int32 visible_widgets_; |
| 305 | 309 |
| 306 // Does this process have backgrounded priority. | 310 // Does this process have backgrounded priority. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 412 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 409 #endif | 413 #endif |
| 410 | 414 |
| 411 // Message filter for geolocation messages. | 415 // Message filter for geolocation messages. |
| 412 GeolocationDispatcherHost* geolocation_dispatcher_host_; | 416 GeolocationDispatcherHost* geolocation_dispatcher_host_; |
| 413 | 417 |
| 414 #if defined(ENABLE_WEBRTC) | 418 #if defined(ENABLE_WEBRTC) |
| 415 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 419 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 416 #endif | 420 #endif |
| 417 | 421 |
| 418 // Lives on the browser's ChildThread. | |
| 419 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | |
| 420 | |
| 421 // Message filter and dispatcher for screen orientation. | 422 // Message filter and dispatcher for screen orientation. |
| 422 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | 423 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
| 423 | 424 |
| 424 int worker_ref_count_; | 425 int worker_ref_count_; |
| 425 | 426 |
| 427 // TODO(sky): remove ifdef, temporary until mac/android sorted out. |
| 428 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 429 scoped_ptr<MojoChannelInit> mojo_channel_init_; |
| 430 #endif |
| 431 |
| 432 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 433 |
| 426 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 434 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 427 }; | 435 }; |
| 428 | 436 |
| 429 } // namespace content | 437 } // namespace content |
| 430 | 438 |
| 431 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 439 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |