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 25 matching lines...) Expand all Loading... |
36 class Size; | 36 class Size; |
37 } | 37 } |
38 | 38 |
39 namespace content { | 39 namespace content { |
40 class AudioRendererHost; | 40 class AudioRendererHost; |
41 class BrowserDemuxerAndroid; | 41 class BrowserDemuxerAndroid; |
42 class GeolocationDispatcherHost; | 42 class GeolocationDispatcherHost; |
43 class GpuMessageFilter; | 43 class GpuMessageFilter; |
44 class MessagePortMessageFilter; | 44 class MessagePortMessageFilter; |
45 class MojoApplicationHost; | 45 class MojoApplicationHost; |
| 46 #if defined(ENABLE_WEBRTC) |
| 47 class P2PSocketDispatcherHost; |
| 48 #endif |
46 class PeerConnectionTrackerHost; | 49 class PeerConnectionTrackerHost; |
47 class RendererMainThread; | 50 class RendererMainThread; |
48 class RenderProcessHostMojoImpl; | 51 class RenderProcessHostMojoImpl; |
49 class RenderWidgetHelper; | 52 class RenderWidgetHelper; |
50 class RenderWidgetHost; | 53 class RenderWidgetHost; |
51 class RenderWidgetHostImpl; | 54 class RenderWidgetHostImpl; |
52 class RenderWidgetHostViewFrameSubscriber; | 55 class RenderWidgetHostViewFrameSubscriber; |
53 class ScreenOrientationDispatcherHost; | 56 class ScreenOrientationDispatcherHost; |
54 class StoragePartition; | 57 class StoragePartition; |
55 class StoragePartitionImpl; | 58 class StoragePartitionImpl; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; | 126 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; |
124 virtual bool FastShutdownStarted() const OVERRIDE; | 127 virtual bool FastShutdownStarted() const OVERRIDE; |
125 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; | 128 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; |
126 virtual void ResumeRequestsForView(int route_id) OVERRIDE; | 129 virtual void ResumeRequestsForView(int route_id) OVERRIDE; |
127 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; | 130 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; |
128 #if defined(ENABLE_WEBRTC) | 131 #if defined(ENABLE_WEBRTC) |
129 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; | 132 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; |
130 virtual void DisableAecDump() OVERRIDE; | 133 virtual void DisableAecDump() OVERRIDE; |
131 virtual void SetWebRtcLogMessageCallback( | 134 virtual void SetWebRtcLogMessageCallback( |
132 base::Callback<void(const std::string&)> callback) OVERRIDE; | 135 base::Callback<void(const std::string&)> callback) OVERRIDE; |
| 136 virtual void SetWebRtcRtpPacketCallback( |
| 137 const WebRtcRtpPacketCallback& callback) OVERRIDE; |
| 138 virtual void StartRtpDump(bool incoming, bool outgoing) OVERRIDE; |
| 139 virtual void StopRtpDump(bool incoming, bool outgoing) OVERRIDE; |
133 #endif | 140 #endif |
134 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) | 141 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) |
135 OVERRIDE; | 142 OVERRIDE; |
136 virtual void NotifyTimezoneChange() OVERRIDE; | 143 virtual void NotifyTimezoneChange() OVERRIDE; |
137 | 144 |
138 // IPC::Sender via RenderProcessHost. | 145 // IPC::Sender via RenderProcessHost. |
139 virtual bool Send(IPC::Message* msg) OVERRIDE; | 146 virtual bool Send(IPC::Message* msg) OVERRIDE; |
140 | 147 |
141 // IPC::Listener via RenderProcessHost. | 148 // IPC::Listener via RenderProcessHost. |
142 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 149 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
166 void EndFrameSubscription(int route_id); | 173 void EndFrameSubscription(int route_id); |
167 | 174 |
168 scoped_refptr<GeolocationDispatcherHost> | 175 scoped_refptr<GeolocationDispatcherHost> |
169 geolocation_dispatcher_host() const { | 176 geolocation_dispatcher_host() const { |
170 return make_scoped_refptr(geolocation_dispatcher_host_); | 177 return make_scoped_refptr(geolocation_dispatcher_host_); |
171 } | 178 } |
172 | 179 |
173 #if defined(ENABLE_WEBRTC) | 180 #if defined(ENABLE_WEBRTC) |
174 // Fires the webrtc log message callback with |message|, if callback is set. | 181 // Fires the webrtc log message callback with |message|, if callback is set. |
175 void WebRtcLogMessage(const std::string& message); | 182 void WebRtcLogMessage(const std::string& message); |
| 183 |
| 184 void OnRtpPacket(const uint8* packet_header, |
| 185 size_t header_length, |
| 186 size_t packet_length, |
| 187 bool incoming); |
176 #endif | 188 #endif |
177 | 189 |
178 scoped_refptr<ScreenOrientationDispatcherHost> | 190 scoped_refptr<ScreenOrientationDispatcherHost> |
179 screen_orientation_dispatcher_host() const; | 191 screen_orientation_dispatcher_host() const; |
180 | 192 |
181 // Register/unregister the host identified by the host id in the global host | 193 // Register/unregister the host identified by the host id in the global host |
182 // list. | 194 // list. |
183 static void RegisterHost(int host_id, RenderProcessHost* host); | 195 static void RegisterHost(int host_id, RenderProcessHost* host); |
184 static void UnregisterHost(int host_id); | 196 static void UnregisterHost(int host_id); |
185 | 197 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 421 |
410 #if defined(OS_ANDROID) | 422 #if defined(OS_ANDROID) |
411 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 423 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
412 #endif | 424 #endif |
413 | 425 |
414 // Message filter for geolocation messages. | 426 // Message filter for geolocation messages. |
415 GeolocationDispatcherHost* geolocation_dispatcher_host_; | 427 GeolocationDispatcherHost* geolocation_dispatcher_host_; |
416 | 428 |
417 #if defined(ENABLE_WEBRTC) | 429 #if defined(ENABLE_WEBRTC) |
418 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 430 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 431 |
| 432 WebRtcRtpPacketCallback webrtc_rtp_packet_callback_; |
| 433 |
| 434 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; |
419 #endif | 435 #endif |
420 | 436 |
421 // Message filter and dispatcher for screen orientation. | 437 // Message filter and dispatcher for screen orientation. |
422 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | 438 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
423 | 439 |
424 int worker_ref_count_; | 440 int worker_ref_count_; |
425 | 441 |
426 // Records the time when the process starts surviving for workers for UMA. | 442 // Records the time when the process starts surviving for workers for UMA. |
427 base::TimeTicks survive_for_worker_start_time_; | 443 base::TimeTicks survive_for_worker_start_time_; |
428 | 444 |
429 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 445 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
430 | 446 |
431 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 447 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
432 }; | 448 }; |
433 | 449 |
434 } // namespace content | 450 } // namespace content |
435 | 451 |
436 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 452 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |