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