| 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/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
| 21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h" | |
| 24 #include "content/browser/child_process_launcher.h" | 23 #include "content/browser/child_process_launcher.h" |
| 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 26 #include "content/browser/power_monitor_message_broadcaster.h" | 25 #include "content/browser/power_monitor_message_broadcaster.h" |
| 27 #include "content/common/content_export.h" | 26 #include "content/common/content_export.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 "services/shell/public/interfaces/service.mojom.h" | 31 #include "services/shell/public/interfaces/service.mojom.h" |
| 33 #include "ui/gfx/gpu_memory_buffer.h" | 32 #include "ui/gfx/gpu_memory_buffer.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 return notification_message_filter_.get(); | 254 return notification_message_filter_.get(); |
| 256 } | 255 } |
| 257 | 256 |
| 258 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { | 257 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { |
| 259 is_for_guests_only_ = is_for_guests_only; | 258 is_for_guests_only_ = is_for_guests_only; |
| 260 } | 259 } |
| 261 | 260 |
| 262 void GetAudioOutputControllers( | 261 void GetAudioOutputControllers( |
| 263 const GetAudioOutputControllersCallback& callback) const override; | 262 const GetAudioOutputControllersCallback& callback) const override; |
| 264 | 263 |
| 265 BluetoothAdapterFactoryWrapper* GetBluetoothAdapterFactoryWrapper(); | |
| 266 | |
| 267 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 264 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
| 268 // Launch the zygote early in the browser startup. | 265 // Launch the zygote early in the browser startup. |
| 269 static void EarlyZygoteLaunch(); | 266 static void EarlyZygoteLaunch(); |
| 270 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 267 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
| 271 | 268 |
| 272 void RecomputeAndUpdateWebKitPreferences(); | 269 void RecomputeAndUpdateWebKitPreferences(); |
| 273 | 270 |
| 274 protected: | 271 protected: |
| 275 // A proxy for our IPC::Channel that lives on the IO thread. | 272 // A proxy for our IPC::Channel that lives on the IO thread. |
| 276 std::unique_ptr<IPC::ChannelProxy> channel_; | 273 std::unique_ptr<IPC::ChannelProxy> channel_; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // through RenderProcessHostObserver::RenderProcessExited. | 465 // through RenderProcessHostObserver::RenderProcessExited. |
| 469 bool within_process_died_observer_; | 466 bool within_process_died_observer_; |
| 470 | 467 |
| 471 // Forwards power state messages to the renderer process. | 468 // Forwards power state messages to the renderer process. |
| 472 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 469 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
| 473 | 470 |
| 474 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 471 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 475 | 472 |
| 476 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 473 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
| 477 | 474 |
| 478 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; | |
| 479 | |
| 480 #if defined(OS_ANDROID) | 475 #if defined(OS_ANDROID) |
| 481 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 476 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 482 #endif | 477 #endif |
| 483 | 478 |
| 484 #if defined(ENABLE_WEBRTC) | 479 #if defined(ENABLE_WEBRTC) |
| 485 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 480 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
| 486 | 481 |
| 487 // Must be accessed on UI thread. | 482 // Must be accessed on UI thread. |
| 488 std::vector<int> aec_dump_consumers_; | 483 std::vector<int> aec_dump_consumers_; |
| 489 | 484 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 517 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 523 | 518 |
| 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 519 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 525 | 520 |
| 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 521 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 527 }; | 522 }; |
| 528 | 523 |
| 529 } // namespace content | 524 } // namespace content |
| 530 | 525 |
| 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 526 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |