| 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_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #if defined(ENABLE_WEBRTC) | 49 #if defined(ENABLE_WEBRTC) |
| 50 class P2PSocketDispatcherHost; | 50 class P2PSocketDispatcherHost; |
| 51 #endif | 51 #endif |
| 52 class PeerConnectionTrackerHost; | 52 class PeerConnectionTrackerHost; |
| 53 class RendererMainThread; | 53 class RendererMainThread; |
| 54 class RenderProcessHostMojoImpl; | 54 class RenderProcessHostMojoImpl; |
| 55 class RenderWidgetHelper; | 55 class RenderWidgetHelper; |
| 56 class RenderWidgetHost; | 56 class RenderWidgetHost; |
| 57 class RenderWidgetHostImpl; | 57 class RenderWidgetHostImpl; |
| 58 class RenderWidgetHostViewFrameSubscriber; | 58 class RenderWidgetHostViewFrameSubscriber; |
| 59 class ScreenOrientationDispatcherHost; |
| 59 class StoragePartition; | 60 class StoragePartition; |
| 60 class StoragePartitionImpl; | 61 class StoragePartitionImpl; |
| 61 | 62 |
| 62 typedef base::Thread* (*RendererMainThreadFactoryFunction)( | 63 typedef base::Thread* (*RendererMainThreadFactoryFunction)( |
| 63 const std::string& id); | 64 const std::string& id); |
| 64 | 65 |
| 65 // Implements a concrete RenderProcessHost for the browser process for talking | 66 // Implements a concrete RenderProcessHost for the browser process for talking |
| 66 // to actual renderer processes (as opposed to mocks). | 67 // to actual renderer processes (as opposed to mocks). |
| 67 // | 68 // |
| 68 // Represents the browser side of the browser <--> renderer communication | 69 // Represents the browser side of the browser <--> renderer communication |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void BeginFrameSubscription( | 174 void BeginFrameSubscription( |
| 174 int route_id, | 175 int route_id, |
| 175 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 176 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
| 176 void EndFrameSubscription(int route_id); | 177 void EndFrameSubscription(int route_id); |
| 177 | 178 |
| 178 #if defined(ENABLE_WEBRTC) | 179 #if defined(ENABLE_WEBRTC) |
| 179 // Fires the webrtc log message callback with |message|, if callback is set. | 180 // Fires the webrtc log message callback with |message|, if callback is set. |
| 180 void WebRtcLogMessage(const std::string& message); | 181 void WebRtcLogMessage(const std::string& message); |
| 181 #endif | 182 #endif |
| 182 | 183 |
| 184 scoped_refptr<ScreenOrientationDispatcherHost> |
| 185 screen_orientation_dispatcher_host() const; |
| 186 |
| 183 // Used to extend the lifetime of the sessions until the render view | 187 // Used to extend the lifetime of the sessions until the render view |
| 184 // in the renderer is fully closed. This is static because its also called | 188 // in the renderer is fully closed. This is static because its also called |
| 185 // with mock hosts as input in test cases. | 189 // with mock hosts as input in test cases. |
| 186 static void ReleaseOnCloseACK( | 190 static void ReleaseOnCloseACK( |
| 187 RenderProcessHost* host, | 191 RenderProcessHost* host, |
| 188 const SessionStorageNamespaceMap& sessions, | 192 const SessionStorageNamespaceMap& sessions, |
| 189 int view_route_id); | 193 int view_route_id); |
| 190 | 194 |
| 191 // Register/unregister the host identified by the host id in the global host | 195 // Register/unregister the host identified by the host id in the global host |
| 192 // list. | 196 // list. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 #endif | 444 #endif |
| 441 | 445 |
| 442 #if defined(ENABLE_WEBRTC) | 446 #if defined(ENABLE_WEBRTC) |
| 443 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 447 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 444 | 448 |
| 445 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; | 449 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
| 446 | 450 |
| 447 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; | 451 WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; |
| 448 #endif | 452 #endif |
| 449 | 453 |
| 454 // Message filter and dispatcher for screen orientation. |
| 455 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
| 456 |
| 450 int worker_ref_count_; | 457 int worker_ref_count_; |
| 451 | 458 |
| 452 // Records the time when the process starts surviving for workers for UMA. | 459 // Records the time when the process starts surviving for workers for UMA. |
| 453 base::TimeTicks survive_for_worker_start_time_; | 460 base::TimeTicks survive_for_worker_start_time_; |
| 454 | 461 |
| 455 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 462 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 456 | 463 |
| 457 #if defined(OS_MACOSX) | 464 #if defined(OS_MACOSX) |
| 458 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; | 465 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; |
| 459 #endif | 466 #endif |
| 460 | 467 |
| 461 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 468 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 462 }; | 469 }; |
| 463 | 470 |
| 464 } // namespace content | 471 } // namespace content |
| 465 | 472 |
| 466 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 473 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |