| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #endif | 61 #endif |
| 62 class PermissionServiceContext; | 62 class PermissionServiceContext; |
| 63 class PeerConnectionTrackerHost; | 63 class PeerConnectionTrackerHost; |
| 64 class RendererMainThread; | 64 class RendererMainThread; |
| 65 class RenderWidgetHelper; | 65 class RenderWidgetHelper; |
| 66 class RenderWidgetHost; | 66 class RenderWidgetHost; |
| 67 class RenderWidgetHostImpl; | 67 class RenderWidgetHostImpl; |
| 68 class RenderWidgetHostViewFrameSubscriber; | 68 class RenderWidgetHostViewFrameSubscriber; |
| 69 class StoragePartition; | 69 class StoragePartition; |
| 70 class StoragePartitionImpl; | 70 class StoragePartitionImpl; |
| 71 class WebSocketManager; |
| 71 | 72 |
| 72 namespace mojom { | 73 namespace mojom { |
| 73 class StoragePartitionService; | 74 class StoragePartitionService; |
| 74 } | 75 } |
| 75 | 76 |
| 76 typedef base::Thread* (*RendererMainThreadFactoryFunction)( | 77 typedef base::Thread* (*RendererMainThreadFactoryFunction)( |
| 77 const InProcessChildThreadParams& params); | 78 const InProcessChildThreadParams& params); |
| 78 | 79 |
| 79 // Implements a concrete RenderProcessHost for the browser process for talking | 80 // Implements a concrete RenderProcessHost for the browser process for talking |
| 80 // to actual renderer processes (as opposed to mocks). | 81 // to actual renderer processes (as opposed to mocks). |
| (...skipping 95 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* websocket_manager() const { |
| 188 return websocket_manager_.get(); |
| 189 } |
| 190 |
| 186 scoped_refptr<AudioRendererHost> audio_renderer_host() const; | 191 scoped_refptr<AudioRendererHost> audio_renderer_host() const; |
| 187 | 192 |
| 188 // Call this function when it is evident that the child process is actively | 193 // 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. | 194 // performing some operation, for example if we just received an IPC message. |
| 190 void mark_child_process_activity_time() { | 195 void mark_child_process_activity_time() { |
| 191 child_process_activity_time_ = base::TimeTicks::Now(); | 196 child_process_activity_time_ = base::TimeTicks::Now(); |
| 192 } | 197 } |
| 193 | 198 |
| 194 // Used to extend the lifetime of the sessions until the render view | 199 // 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 | 200 // 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. | 469 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. |
| 465 bool delayed_cleanup_needed_; | 470 bool delayed_cleanup_needed_; |
| 466 | 471 |
| 467 // Indicates whether RenderProcessHostImpl is currently iterating and calling | 472 // Indicates whether RenderProcessHostImpl is currently iterating and calling |
| 468 // through RenderProcessHostObserver::RenderProcessExited. | 473 // through RenderProcessHostObserver::RenderProcessExited. |
| 469 bool within_process_died_observer_; | 474 bool within_process_died_observer_; |
| 470 | 475 |
| 471 // Forwards power state messages to the renderer process. | 476 // Forwards power state messages to the renderer process. |
| 472 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 477 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
| 473 | 478 |
| 479 std::unique_ptr<WebSocketManager> websocket_manager_; |
| 480 |
| 474 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 481 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 475 | 482 |
| 476 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 483 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
| 477 | 484 |
| 478 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; | 485 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_; |
| 479 | 486 |
| 480 #if defined(OS_ANDROID) | 487 #if defined(OS_ANDROID) |
| 481 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 488 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 482 #endif | 489 #endif |
| 483 | 490 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 529 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 523 | 530 |
| 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 531 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 525 | 532 |
| 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 533 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 527 }; | 534 }; |
| 528 | 535 |
| 529 } // namespace content | 536 } // namespace content |
| 530 | 537 |
| 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 538 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |