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