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" | |
23 #include "content/browser/child_process_launcher.h" | 22 #include "content/browser/child_process_launcher.h" |
24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 23 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
25 #include "content/browser/power_monitor_message_broadcaster.h" | 24 #include "content/browser/power_monitor_message_broadcaster.h" |
26 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
27 #include "content/common/mojo/service_registry_impl.h" | 26 #include "content/common/mojo/service_registry_impl.h" |
28 #include "content/public/browser/render_process_host.h" | 27 #include "content/public/browser/render_process_host.h" |
29 #include "ipc/ipc_channel_proxy.h" | 28 #include "ipc/ipc_channel_proxy.h" |
30 #include "ipc/ipc_platform_file.h" | 29 #include "ipc/ipc_platform_file.h" |
31 #include "mojo/public/cpp/bindings/interface_ptr.h" | 30 #include "mojo/public/cpp/bindings/interface_ptr.h" |
32 #include "ui/gfx/gpu_memory_buffer.h" | 31 #include "ui/gfx/gpu_memory_buffer.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 return notification_message_filter_.get(); | 255 return notification_message_filter_.get(); |
257 } | 256 } |
258 | 257 |
259 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { | 258 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { |
260 is_for_guests_only_ = is_for_guests_only; | 259 is_for_guests_only_ = is_for_guests_only; |
261 } | 260 } |
262 | 261 |
263 void GetAudioOutputControllers( | 262 void GetAudioOutputControllers( |
264 const GetAudioOutputControllersCallback& callback) const override; | 263 const GetAudioOutputControllersCallback& callback) const override; |
265 | 264 |
266 BluetoothAdapterFactoryWrapper* GetBluetoothAdapterFactoryWrapper(); | |
267 | |
268 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 265 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
269 // Launch the zygote early in the browser startup. | 266 // Launch the zygote early in the browser startup. |
270 static void EarlyZygoteLaunch(); | 267 static void EarlyZygoteLaunch(); |
271 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 268 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
272 | 269 |
273 void RecomputeAndUpdateWebKitPreferences(); | 270 void RecomputeAndUpdateWebKitPreferences(); |
274 | 271 |
275 protected: | 272 protected: |
276 // A proxy for our IPC::Channel that lives on the IO thread. | 273 // A proxy for our IPC::Channel that lives on the IO thread. |
277 std::unique_ptr<IPC::ChannelProxy> channel_; | 274 std::unique_ptr<IPC::ChannelProxy> channel_; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // through RenderProcessHostObserver::RenderProcessExited. | 471 // through RenderProcessHostObserver::RenderProcessExited. |
475 bool within_process_died_observer_; | 472 bool within_process_died_observer_; |
476 | 473 |
477 // Forwards power state messages to the renderer process. | 474 // Forwards power state messages to the renderer process. |
478 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 475 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
479 | 476 |
480 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 477 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
481 | 478 |
482 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 479 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
483 | 480 |
484 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; | |
485 | |
486 #if defined(OS_ANDROID) | 481 #if defined(OS_ANDROID) |
487 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 482 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
488 #endif | 483 #endif |
489 | 484 |
490 #if defined(ENABLE_WEBRTC) | 485 #if defined(ENABLE_WEBRTC) |
491 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 486 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
492 | 487 |
493 // Must be accessed on UI thread. | 488 // Must be accessed on UI thread. |
494 std::vector<int> aec_dump_consumers_; | 489 std::vector<int> aec_dump_consumers_; |
495 | 490 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 523 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
529 | 524 |
530 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 525 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
531 | 526 |
532 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 527 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
533 }; | 528 }; |
534 | 529 |
535 } // namespace content | 530 } // namespace content |
536 | 531 |
537 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 532 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |