| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #endif | 60 #endif |
| 61 class PermissionServiceContext; | 61 class PermissionServiceContext; |
| 62 class PeerConnectionTrackerHost; | 62 class PeerConnectionTrackerHost; |
| 63 class RendererMainThread; | 63 class RendererMainThread; |
| 64 class RenderWidgetHelper; | 64 class RenderWidgetHelper; |
| 65 class RenderWidgetHost; | 65 class RenderWidgetHost; |
| 66 class RenderWidgetHostImpl; | 66 class RenderWidgetHostImpl; |
| 67 class RenderWidgetHostViewFrameSubscriber; | 67 class RenderWidgetHostViewFrameSubscriber; |
| 68 class StoragePartition; | 68 class StoragePartition; |
| 69 class StoragePartitionImpl; | 69 class StoragePartitionImpl; |
| 70 class WebSocketManager; |
| 70 | 71 |
| 71 namespace mojom { | 72 namespace mojom { |
| 72 class StoragePartitionService; | 73 class StoragePartitionService; |
| 73 } | 74 } |
| 74 | 75 |
| 75 typedef base::Thread* (*RendererMainThreadFactoryFunction)( | 76 typedef base::Thread* (*RendererMainThreadFactoryFunction)( |
| 76 const InProcessChildThreadParams& params); | 77 const InProcessChildThreadParams& params); |
| 77 | 78 |
| 78 // Implements a concrete RenderProcessHost for the browser process for talking | 79 // Implements a concrete RenderProcessHost for the browser process for talking |
| 79 // to actual renderer processes (as opposed to mocks). | 80 // to actual renderer processes (as opposed to mocks). |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // IPC::Listener via RenderProcessHost. | 177 // IPC::Listener via RenderProcessHost. |
| 177 bool OnMessageReceived(const IPC::Message& msg) override; | 178 bool OnMessageReceived(const IPC::Message& msg) override; |
| 178 void OnChannelConnected(int32_t peer_pid) override; | 179 void OnChannelConnected(int32_t peer_pid) override; |
| 179 void OnChannelError() override; | 180 void OnChannelError() override; |
| 180 void OnBadMessageReceived(const IPC::Message& message) override; | 181 void OnBadMessageReceived(const IPC::Message& message) override; |
| 181 | 182 |
| 182 // ChildProcessLauncher::Client implementation. | 183 // ChildProcessLauncher::Client implementation. |
| 183 void OnProcessLaunched() override; | 184 void OnProcessLaunched() override; |
| 184 void OnProcessLaunchFailed(int error_code) override; | 185 void OnProcessLaunchFailed(int error_code) override; |
| 185 | 186 |
| 187 WebSocketManager* GetWebSocketManager(); |
| 186 scoped_refptr<AudioRendererHost> audio_renderer_host() const; | 188 scoped_refptr<AudioRendererHost> audio_renderer_host() const; |
| 187 | 189 |
| 188 // Call this function when it is evident that the child process is actively | 190 // Call this function when it is evident that the child process is actively |
| 189 // performing some operation, for example if we just received an IPC message. | 191 // performing some operation, for example if we just received an IPC message. |
| 190 void mark_child_process_activity_time() { | 192 void mark_child_process_activity_time() { |
| 191 child_process_activity_time_ = base::TimeTicks::Now(); | 193 child_process_activity_time_ = base::TimeTicks::Now(); |
| 192 } | 194 } |
| 193 | 195 |
| 194 // Used to extend the lifetime of the sessions until the render view | 196 // Used to extend the lifetime of the sessions until the render view |
| 195 // in the renderer is fully closed. This is static because its also called | 197 // in the renderer is fully closed. This is static because its also called |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. | 466 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. |
| 465 bool delayed_cleanup_needed_; | 467 bool delayed_cleanup_needed_; |
| 466 | 468 |
| 467 // Indicates whether RenderProcessHostImpl is currently iterating and calling | 469 // Indicates whether RenderProcessHostImpl is currently iterating and calling |
| 468 // through RenderProcessHostObserver::RenderProcessExited. | 470 // through RenderProcessHostObserver::RenderProcessExited. |
| 469 bool within_process_died_observer_; | 471 bool within_process_died_observer_; |
| 470 | 472 |
| 471 // Forwards power state messages to the renderer process. | 473 // Forwards power state messages to the renderer process. |
| 472 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 474 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
| 473 | 475 |
| 476 WebSocketManager* websocket_manager_ = nullptr; |
| 477 |
| 474 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 478 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 475 | 479 |
| 476 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 480 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
| 477 | 481 |
| 478 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; | 482 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; |
| 479 | 483 |
| 480 #if defined(OS_ANDROID) | 484 #if defined(OS_ANDROID) |
| 481 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 485 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 482 #endif | 486 #endif |
| 483 | 487 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 526 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 523 | 527 |
| 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 528 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 525 | 529 |
| 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 530 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 527 }; | 531 }; |
| 528 | 532 |
| 529 } // namespace content | 533 } // namespace content |
| 530 | 534 |
| 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 535 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |