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