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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 // Checks that the given renderer can request |url|, if not it sets it to | 214 // Checks that the given renderer can request |url|, if not it sets it to |
215 // about:blank. | 215 // about:blank. |
216 // |empty_allowed| must be set to false for navigations for security reasons. | 216 // |empty_allowed| must be set to false for navigations for security reasons. |
217 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; | 217 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; |
218 | 218 |
219 #if defined(ENABLE_WEBRTC) | 219 #if defined(ENABLE_WEBRTC) |
220 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0; | 220 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0; |
221 virtual void DisableAudioDebugRecordings() = 0; | 221 virtual void DisableAudioDebugRecordings() = 0; |
222 | 222 |
223 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0; | 223 // Starts a WebRTC event log for each peerconnection on the render process. |
224 virtual void DisableEventLogRecordings() = 0; | 224 // A base file_path can be supplied, which will be extended to include several |
| 225 // identifiers to ensure uniqueness. If a recording was already in progress, |
| 226 // this call will return false and have no other effect. |
| 227 virtual bool StartWebRTCEventLog(const base::FilePath& file_path) = 0; |
| 228 |
| 229 // Stops recording a WebRTC event log for each peerconnection on the render |
| 230 // process. If no recording was in progress, this call will return false. |
| 231 virtual bool StopWebRTCEventLog() = 0; |
225 | 232 |
226 // When set, |callback| receives log messages regarding, for example, media | 233 // When set, |callback| receives log messages regarding, for example, media |
227 // devices (webcams, mics, etc) that were initially requested in the render | 234 // devices (webcams, mics, etc) that were initially requested in the render |
228 // process associated with this RenderProcessHost. | 235 // process associated with this RenderProcessHost. |
229 virtual void SetWebRtcLogMessageCallback( | 236 virtual void SetWebRtcLogMessageCallback( |
230 base::Callback<void(const std::string&)> callback) = 0; | 237 base::Callback<void(const std::string&)> callback) = 0; |
231 virtual void ClearWebRtcLogMessageCallback() = 0; | 238 virtual void ClearWebRtcLogMessageCallback() = 0; |
232 | 239 |
233 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header, | 240 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header, |
234 size_t header_length, | 241 size_t header_length, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 static void SetMaxRendererProcessCount(size_t count); | 371 static void SetMaxRendererProcessCount(size_t count); |
365 | 372 |
366 // Returns the current maximum number of renderer process hosts kept by the | 373 // Returns the current maximum number of renderer process hosts kept by the |
367 // content module. | 374 // content module. |
368 static size_t GetMaxRendererProcessCount(); | 375 static size_t GetMaxRendererProcessCount(); |
369 }; | 376 }; |
370 | 377 |
371 } // namespace content. | 378 } // namespace content. |
372 | 379 |
373 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 380 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |