| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/child_process_launcher.h" | 23 #include "content/browser/child_process_launcher.h" |
| 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 25 #include "content/browser/webrtc/webrtc_eventlog_host.h" | 25 #include "content/browser/webrtc/webrtc_eventlog_host.h" |
| 26 #include "content/common/associated_interfaces.mojom.h" | 26 #include "content/common/associated_interfaces.mojom.h" |
| 27 #include "content/common/content_export.h" | 27 #include "content/common/content_export.h" |
| 28 #include "content/common/renderer.mojom.h" | 28 #include "content/common/renderer.mojom.h" |
| 29 #include "content/public/browser/render_process_host.h" | 29 #include "content/public/browser/render_process_host.h" |
| 30 #include "content/public/common/service_manager_connection.h" | 30 #include "content/public/common/service_manager_connection.h" |
| 31 #include "ipc/ipc_channel_proxy.h" | 31 #include "ipc/ipc_channel_proxy.h" |
| 32 #include "ipc/ipc_platform_file.h" | 32 #include "ipc/ipc_platform_file.h" |
| 33 #include "media/media_features.h" |
| 33 #include "mojo/public/cpp/bindings/associated_binding.h" | 34 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 34 #include "mojo/public/cpp/bindings/associated_binding_set.h" | 35 #include "mojo/public/cpp/bindings/associated_binding_set.h" |
| 35 #include "mojo/public/cpp/bindings/interface_ptr.h" | 36 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 36 #include "services/service_manager/public/cpp/interface_registry.h" | 37 #include "services/service_manager/public/cpp/interface_registry.h" |
| 37 #include "services/service_manager/public/interfaces/service.mojom.h" | 38 #include "services/service_manager/public/interfaces/service.mojom.h" |
| 38 #include "ui/gfx/gpu_memory_buffer.h" | 39 #include "ui/gfx/gpu_memory_buffer.h" |
| 39 #include "ui/gl/gpu_switching_observer.h" | 40 #include "ui/gl/gpu_switching_observer.h" |
| 40 | 41 |
| 41 #if defined(OS_ANDROID) | 42 #if defined(OS_ANDROID) |
| 42 #include "content/browser/android/synchronous_compositor_browser_filter.h" | 43 #include "content/browser/android/synchronous_compositor_browser_filter.h" |
| 43 #endif | 44 #endif |
| 44 | 45 |
| 45 namespace base { | 46 namespace base { |
| 46 class CommandLine; | 47 class CommandLine; |
| 47 class MessageLoop; | 48 class MessageLoop; |
| 48 class SharedPersistentMemoryAllocator; | 49 class SharedPersistentMemoryAllocator; |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace content { | 52 namespace content { |
| 52 class AudioInputRendererHost; | 53 class AudioInputRendererHost; |
| 53 class AudioRendererHost; | 54 class AudioRendererHost; |
| 54 class ChildConnection; | 55 class ChildConnection; |
| 55 class InProcessChildThreadParams; | 56 class InProcessChildThreadParams; |
| 56 class MessagePortMessageFilter; | 57 class MessagePortMessageFilter; |
| 57 class NotificationMessageFilter; | 58 class NotificationMessageFilter; |
| 58 #if defined(ENABLE_WEBRTC) | 59 #if BUILDFLAG(ENABLE_WEBRTC) |
| 59 class P2PSocketDispatcherHost; | 60 class P2PSocketDispatcherHost; |
| 60 #endif | 61 #endif |
| 61 class PermissionServiceContext; | 62 class PermissionServiceContext; |
| 62 class PeerConnectionTrackerHost; | 63 class PeerConnectionTrackerHost; |
| 63 class RendererMainThread; | 64 class RendererMainThread; |
| 64 class RenderFrameMessageFilter; | 65 class RenderFrameMessageFilter; |
| 65 class RenderWidgetHelper; | 66 class RenderWidgetHelper; |
| 66 class RenderWidgetHost; | 67 class RenderWidgetHost; |
| 67 class ResourceMessageFilter; | 68 class ResourceMessageFilter; |
| 68 class StoragePartition; | 69 class StoragePartition; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void AddPendingView() override; | 136 void AddPendingView() override; |
| 136 void RemovePendingView() override; | 137 void RemovePendingView() override; |
| 137 void SetSuddenTerminationAllowed(bool enabled) override; | 138 void SetSuddenTerminationAllowed(bool enabled) override; |
| 138 bool SuddenTerminationAllowed() const override; | 139 bool SuddenTerminationAllowed() const override; |
| 139 IPC::ChannelProxy* GetChannel() override; | 140 IPC::ChannelProxy* GetChannel() override; |
| 140 void AddFilter(BrowserMessageFilter* filter) override; | 141 void AddFilter(BrowserMessageFilter* filter) override; |
| 141 bool FastShutdownForPageCount(size_t count) override; | 142 bool FastShutdownForPageCount(size_t count) override; |
| 142 bool FastShutdownStarted() const override; | 143 bool FastShutdownStarted() const override; |
| 143 base::TimeDelta GetChildProcessIdleTime() const override; | 144 base::TimeDelta GetChildProcessIdleTime() const override; |
| 144 void FilterURL(bool empty_allowed, GURL* url) override; | 145 void FilterURL(bool empty_allowed, GURL* url) override; |
| 145 #if defined(ENABLE_WEBRTC) | 146 #if BUILDFLAG(ENABLE_WEBRTC) |
| 146 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 147 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
| 147 void DisableAudioDebugRecordings() override; | 148 void DisableAudioDebugRecordings() override; |
| 148 bool StartWebRTCEventLog(const base::FilePath& file_path) override; | 149 bool StartWebRTCEventLog(const base::FilePath& file_path) override; |
| 149 bool StopWebRTCEventLog() override; | 150 bool StopWebRTCEventLog() override; |
| 150 void SetWebRtcLogMessageCallback( | 151 void SetWebRtcLogMessageCallback( |
| 151 base::Callback<void(const std::string&)> callback) override; | 152 base::Callback<void(const std::string&)> callback) override; |
| 152 void ClearWebRtcLogMessageCallback() override; | 153 void ClearWebRtcLogMessageCallback() override; |
| 153 WebRtcStopRtpDumpCallback StartRtpDump( | 154 WebRtcStopRtpDumpCallback StartRtpDump( |
| 154 bool incoming, | 155 bool incoming, |
| 155 bool outgoing, | 156 bool outgoing, |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 void CreateSharedRendererHistogramAllocator(); | 363 void CreateSharedRendererHistogramAllocator(); |
| 363 | 364 |
| 364 // Handle termination of our process. | 365 // Handle termination of our process. |
| 365 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); | 366 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); |
| 366 | 367 |
| 367 void OnRouteProviderRequest(mojom::RouteProviderAssociatedRequest request); | 368 void OnRouteProviderRequest(mojom::RouteProviderAssociatedRequest request); |
| 368 | 369 |
| 369 // GpuSwitchingObserver implementation. | 370 // GpuSwitchingObserver implementation. |
| 370 void OnGpuSwitched() override; | 371 void OnGpuSwitched() override; |
| 371 | 372 |
| 372 #if defined(ENABLE_WEBRTC) | 373 #if BUILDFLAG(ENABLE_WEBRTC) |
| 373 void OnRegisterAecDumpConsumer(int id); | 374 void OnRegisterAecDumpConsumer(int id); |
| 374 void OnUnregisterAecDumpConsumer(int id); | 375 void OnUnregisterAecDumpConsumer(int id); |
| 375 void RegisterAecDumpConsumerOnUIThread(int id); | 376 void RegisterAecDumpConsumerOnUIThread(int id); |
| 376 void UnregisterAecDumpConsumerOnUIThread(int id); | 377 void UnregisterAecDumpConsumerOnUIThread(int id); |
| 377 void EnableAecDumpForId(const base::FilePath& file, int id); | 378 void EnableAecDumpForId(const base::FilePath& file, int id); |
| 378 // Sends |file_for_transit| to the render process. | 379 // Sends |file_for_transit| to the render process. |
| 379 void SendAecDumpFileToRenderer(int id, | 380 void SendAecDumpFileToRenderer(int id, |
| 380 IPC::PlatformFileForTransit file_for_transit); | 381 IPC::PlatformFileForTransit file_for_transit); |
| 381 void SendDisableAecDumpToRenderer(); | 382 void SendDisableAecDumpToRenderer(); |
| 382 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); | 383 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 bool delayed_cleanup_needed_; | 527 bool delayed_cleanup_needed_; |
| 527 | 528 |
| 528 // Indicates whether RenderProcessHostImpl is currently iterating and calling | 529 // Indicates whether RenderProcessHostImpl is currently iterating and calling |
| 529 // through RenderProcessHostObserver::RenderProcessExited. | 530 // through RenderProcessHostObserver::RenderProcessExited. |
| 530 bool within_process_died_observer_; | 531 bool within_process_died_observer_; |
| 531 | 532 |
| 532 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 533 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 533 | 534 |
| 534 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 535 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
| 535 | 536 |
| 536 #if defined(ENABLE_WEBRTC) | 537 #if BUILDFLAG(ENABLE_WEBRTC) |
| 537 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 538 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
| 538 | 539 |
| 539 // Must be accessed on UI thread. | 540 // Must be accessed on UI thread. |
| 540 std::vector<int> aec_dump_consumers_; | 541 std::vector<int> aec_dump_consumers_; |
| 541 | 542 |
| 542 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; | 543 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; |
| 543 | 544 |
| 544 WebRTCEventLogHost webrtc_eventlog_host_; | 545 WebRTCEventLogHost webrtc_eventlog_host_; |
| 545 #endif | 546 #endif |
| 546 | 547 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 instance_weak_factory_; | 588 instance_weak_factory_; |
| 588 | 589 |
| 589 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 590 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 590 | 591 |
| 591 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 592 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 592 }; | 593 }; |
| 593 | 594 |
| 594 } // namespace content | 595 } // namespace content |
| 595 | 596 |
| 596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 597 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |