| 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_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <queue> | 13 #include <queue> |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
| 19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
| 20 #include "base/synchronization/waitable_event.h" | 20 #include "base/synchronization/waitable_event.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h" |
| 22 #include "content/browser/child_process_launcher.h" | 23 #include "content/browser/child_process_launcher.h" |
| 23 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 24 #include "content/browser/power_monitor_message_broadcaster.h" | 25 #include "content/browser/power_monitor_message_broadcaster.h" |
| 25 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
| 26 #include "content/common/mojo/service_registry_impl.h" | 27 #include "content/common/mojo/service_registry_impl.h" |
| 27 #include "content/public/browser/render_process_host.h" | 28 #include "content/public/browser/render_process_host.h" |
| 28 #include "ipc/ipc_channel_proxy.h" | 29 #include "ipc/ipc_channel_proxy.h" |
| 29 #include "ipc/ipc_platform_file.h" | 30 #include "ipc/ipc_platform_file.h" |
| 30 #include "mojo/public/cpp/bindings/interface_ptr.h" | 31 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 31 #include "ui/gfx/gpu_memory_buffer.h" | 32 #include "ui/gfx/gpu_memory_buffer.h" |
| 32 #include "ui/gl/gpu_switching_observer.h" | 33 #include "ui/gl/gpu_switching_observer.h" |
| 33 | 34 |
| 34 namespace base { | 35 namespace base { |
| 35 class CommandLine; | 36 class CommandLine; |
| 36 class MessageLoop; | 37 class MessageLoop; |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace gfx { | 40 namespace gfx { |
| 40 class Size; | 41 class Size; |
| 41 } | 42 } |
| 42 | 43 |
| 43 namespace IPC { | 44 namespace IPC { |
| 44 class ChannelMojoHost; | 45 class ChannelMojoHost; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace content { | 48 namespace content { |
| 48 class AudioInputRendererHost; | 49 class AudioInputRendererHost; |
| 49 class AudioRendererHost; | 50 class AudioRendererHost; |
| 50 class BluetoothDispatcherHost; | |
| 51 class BrowserCdmManager; | 51 class BrowserCdmManager; |
| 52 class BrowserDemuxerAndroid; | 52 class BrowserDemuxerAndroid; |
| 53 class InProcessChildThreadParams; | 53 class InProcessChildThreadParams; |
| 54 class MessagePortMessageFilter; | 54 class MessagePortMessageFilter; |
| 55 class MojoApplicationHost; | 55 class MojoApplicationHost; |
| 56 class MojoChildConnection; | 56 class MojoChildConnection; |
| 57 class NotificationMessageFilter; | 57 class NotificationMessageFilter; |
| 58 #if defined(ENABLE_WEBRTC) | 58 #if defined(ENABLE_WEBRTC) |
| 59 class P2PSocketDispatcherHost; | 59 class P2PSocketDispatcherHost; |
| 60 #endif | 60 #endif |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 return notification_message_filter_.get(); | 256 return notification_message_filter_.get(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { | 259 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { |
| 260 is_for_guests_only_ = is_for_guests_only; | 260 is_for_guests_only_ = is_for_guests_only; |
| 261 } | 261 } |
| 262 | 262 |
| 263 void GetAudioOutputControllers( | 263 void GetAudioOutputControllers( |
| 264 const GetAudioOutputControllersCallback& callback) const override; | 264 const GetAudioOutputControllersCallback& callback) const override; |
| 265 | 265 |
| 266 BluetoothDispatcherHost* GetBluetoothDispatcherHost(); | 266 BluetoothAdapterFactoryWrapper* GetBluetoothAdapterFactoryWrapper(); |
| 267 | 267 |
| 268 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 268 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
| 269 // Launch the zygote early in the browser startup. | 269 // Launch the zygote early in the browser startup. |
| 270 static void EarlyZygoteLaunch(); | 270 static void EarlyZygoteLaunch(); |
| 271 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 271 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
| 272 | 272 |
| 273 void RecomputeAndUpdateWebKitPreferences(); | 273 void RecomputeAndUpdateWebKitPreferences(); |
| 274 | 274 |
| 275 protected: | 275 protected: |
| 276 // A proxy for our IPC::Channel that lives on the IO thread. | 276 // A proxy for our IPC::Channel that lives on the IO thread. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 // through RenderProcessHostObserver::RenderProcessExited. | 473 // through RenderProcessHostObserver::RenderProcessExited. |
| 474 bool within_process_died_observer_; | 474 bool within_process_died_observer_; |
| 475 | 475 |
| 476 // Forwards power state messages to the renderer process. | 476 // Forwards power state messages to the renderer process. |
| 477 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 477 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
| 478 | 478 |
| 479 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 479 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 480 | 480 |
| 481 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 481 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
| 482 | 482 |
| 483 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host_; | 483 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; |
| 484 | 484 |
| 485 #if defined(OS_ANDROID) | 485 #if defined(OS_ANDROID) |
| 486 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 486 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 487 #endif | 487 #endif |
| 488 | 488 |
| 489 #if defined(ENABLE_WEBRTC) | 489 #if defined(ENABLE_WEBRTC) |
| 490 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 490 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
| 491 | 491 |
| 492 // Must be accessed on UI thread. | 492 // Must be accessed on UI thread. |
| 493 std::vector<int> aec_dump_consumers_; | 493 std::vector<int> aec_dump_consumers_; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 527 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 528 | 528 |
| 529 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 529 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 530 | 530 |
| 531 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 531 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 532 }; | 532 }; |
| 533 | 533 |
| 534 } // namespace content | 534 } // namespace content |
| 535 | 535 |
| 536 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 536 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |