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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 #if defined(ENABLE_WEBRTC) | 199 #if defined(ENABLE_WEBRTC) |
200 virtual void EnableAecDump(const base::FilePath& file) = 0; | 200 virtual void EnableAecDump(const base::FilePath& file) = 0; |
201 virtual void DisableAecDump() = 0; | 201 virtual void DisableAecDump() = 0; |
202 | 202 |
203 // When set, |callback| receives log messages regarding, for example, media | 203 // When set, |callback| receives log messages regarding, for example, media |
204 // devices (webcams, mics, etc) that were initially requested in the render | 204 // devices (webcams, mics, etc) that were initially requested in the render |
205 // process associated with this RenderProcessHost. | 205 // process associated with this RenderProcessHost. |
206 virtual void SetWebRtcLogMessageCallback( | 206 virtual void SetWebRtcLogMessageCallback( |
207 base::Callback<void(const std::string&)> callback) = 0; | 207 base::Callback<void(const std::string&)> callback) = 0; |
| 208 |
| 209 typedef base::Callback< |
| 210 void(const uint8* packet, size_t length, bool incoming)> |
| 211 WebRtcRtpPacketCallback; |
| 212 virtual void SetWebRtcRtpPacketCallback( |
| 213 const WebRtcRtpPacketCallback& callback) = 0; |
208 #endif | 214 #endif |
209 | 215 |
210 // Tells the ResourceDispatcherHost to resume a deferred navigation without | 216 // Tells the ResourceDispatcherHost to resume a deferred navigation without |
211 // transferring it to a new renderer process. | 217 // transferring it to a new renderer process. |
212 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; | 218 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; |
213 | 219 |
214 // Notifies the renderer that the timezone configuration of the system might | 220 // Notifies the renderer that the timezone configuration of the system might |
215 // have changed. | 221 // have changed. |
216 virtual void NotifyTimezoneChange() = 0; | 222 virtual void NotifyTimezoneChange() = 0; |
217 | 223 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 static void SetMaxRendererProcessCount(size_t count); | 272 static void SetMaxRendererProcessCount(size_t count); |
267 | 273 |
268 // Returns the current max number of renderer processes used by the content | 274 // Returns the current max number of renderer processes used by the content |
269 // module. | 275 // module. |
270 static size_t GetMaxRendererProcessCount(); | 276 static size_t GetMaxRendererProcessCount(); |
271 }; | 277 }; |
272 | 278 |
273 } // namespace content. | 279 } // namespace content. |
274 | 280 |
275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 281 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |