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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; | 123 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; |
124 virtual bool FastShutdownStarted() const OVERRIDE; | 124 virtual bool FastShutdownStarted() const OVERRIDE; |
125 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; | 125 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; |
126 virtual void ResumeRequestsForView(int route_id) OVERRIDE; | 126 virtual void ResumeRequestsForView(int route_id) OVERRIDE; |
127 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; | 127 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; |
128 #if defined(ENABLE_WEBRTC) | 128 #if defined(ENABLE_WEBRTC) |
129 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; | 129 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; |
130 virtual void DisableAecDump() OVERRIDE; | 130 virtual void DisableAecDump() OVERRIDE; |
131 virtual void SetWebRtcLogMessageCallback( | 131 virtual void SetWebRtcLogMessageCallback( |
132 base::Callback<void(const std::string&)> callback) OVERRIDE; | 132 base::Callback<void(const std::string&)> callback) OVERRIDE; |
| 133 virtual void SetWebRtcRtpPacketCallback( |
| 134 const WebRtcRtpPacketCallback& callback) OVERRIDE; |
133 #endif | 135 #endif |
134 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) | 136 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) |
135 OVERRIDE; | 137 OVERRIDE; |
136 virtual void NotifyTimezoneChange() OVERRIDE; | 138 virtual void NotifyTimezoneChange() OVERRIDE; |
137 | 139 |
138 // IPC::Sender via RenderProcessHost. | 140 // IPC::Sender via RenderProcessHost. |
139 virtual bool Send(IPC::Message* msg) OVERRIDE; | 141 virtual bool Send(IPC::Message* msg) OVERRIDE; |
140 | 142 |
141 // IPC::Listener via RenderProcessHost. | 143 // IPC::Listener via RenderProcessHost. |
142 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 144 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
166 void EndFrameSubscription(int route_id); | 168 void EndFrameSubscription(int route_id); |
167 | 169 |
168 scoped_refptr<GeolocationDispatcherHost> | 170 scoped_refptr<GeolocationDispatcherHost> |
169 geolocation_dispatcher_host() const { | 171 geolocation_dispatcher_host() const { |
170 return make_scoped_refptr(geolocation_dispatcher_host_); | 172 return make_scoped_refptr(geolocation_dispatcher_host_); |
171 } | 173 } |
172 | 174 |
173 #if defined(ENABLE_WEBRTC) | 175 #if defined(ENABLE_WEBRTC) |
174 // Fires the webrtc log message callback with |message|, if callback is set. | 176 // Fires the webrtc log message callback with |message|, if callback is set. |
175 void WebRtcLogMessage(const std::string& message); | 177 void WebRtcLogMessage(const std::string& message); |
| 178 |
| 179 void OnRtpPacket(const uint8* packet, size_t length, bool incoming); |
176 #endif | 180 #endif |
177 | 181 |
178 scoped_refptr<ScreenOrientationDispatcherHost> | 182 scoped_refptr<ScreenOrientationDispatcherHost> |
179 screen_orientation_dispatcher_host() const; | 183 screen_orientation_dispatcher_host() const; |
180 | 184 |
181 // Register/unregister the host identified by the host id in the global host | 185 // Register/unregister the host identified by the host id in the global host |
182 // list. | 186 // list. |
183 static void RegisterHost(int host_id, RenderProcessHost* host); | 187 static void RegisterHost(int host_id, RenderProcessHost* host); |
184 static void UnregisterHost(int host_id); | 188 static void UnregisterHost(int host_id); |
185 | 189 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 413 |
410 #if defined(OS_ANDROID) | 414 #if defined(OS_ANDROID) |
411 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 415 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
412 #endif | 416 #endif |
413 | 417 |
414 // Message filter for geolocation messages. | 418 // Message filter for geolocation messages. |
415 GeolocationDispatcherHost* geolocation_dispatcher_host_; | 419 GeolocationDispatcherHost* geolocation_dispatcher_host_; |
416 | 420 |
417 #if defined(ENABLE_WEBRTC) | 421 #if defined(ENABLE_WEBRTC) |
418 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 422 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 423 |
| 424 WebRtcRtpPacketCallback webrtc_rtp_packet_callback_; |
419 #endif | 425 #endif |
420 | 426 |
421 // Message filter and dispatcher for screen orientation. | 427 // Message filter and dispatcher for screen orientation. |
422 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | 428 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; |
423 | 429 |
424 int worker_ref_count_; | 430 int worker_ref_count_; |
425 | 431 |
426 // Records the time when the process starts surviving for workers for UMA. | 432 // Records the time when the process starts surviving for workers for UMA. |
427 base::TimeTicks survive_for_worker_start_time_; | 433 base::TimeTicks survive_for_worker_start_time_; |
428 | 434 |
429 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 435 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
430 | 436 |
431 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 437 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
432 }; | 438 }; |
433 | 439 |
434 } // namespace content | 440 } // namespace content |
435 | 441 |
436 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 442 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |