Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: content/public/browser/render_process_host.h

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added CONTENT_EXPORT to WebRTCEventLogHost. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698