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

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: Moved event log related bookkeeping/IPC from chrome/ to content/, into new class called WebRTCEvent… Created 4 years, 7 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
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
223 virtual void DisableEventLogRecordings() = 0;
224
225 // When set, |callback| receives log messages regarding, for example, media 222 // When set, |callback| receives log messages regarding, for example, media
226 // devices (webcams, mics, etc) that were initially requested in the render 223 // devices (webcams, mics, etc) that were initially requested in the render
227 // process associated with this RenderProcessHost. 224 // process associated with this RenderProcessHost.
228 virtual void SetWebRtcLogMessageCallback( 225 virtual void SetWebRtcLogMessageCallback(
229 base::Callback<void(const std::string&)> callback) = 0; 226 base::Callback<void(const std::string&)> callback) = 0;
230 virtual void ClearWebRtcLogMessageCallback() = 0; 227 virtual void ClearWebRtcLogMessageCallback() = 0;
231 228
232 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header, 229 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header,
233 size_t header_length, 230 size_t header_length,
234 size_t packet_length, 231 size_t packet_length,
235 bool incoming)> 232 bool incoming)>
236 WebRtcRtpPacketCallback; 233 WebRtcRtpPacketCallback;
237 234
238 typedef base::Callback<void(bool incoming, bool outgoing)> 235 typedef base::Callback<void(bool incoming, bool outgoing)>
239 WebRtcStopRtpDumpCallback; 236 WebRtcStopRtpDumpCallback;
240 237
241 // Starts passing RTP packets to |packet_callback| and returns the callback 238 // Starts passing RTP packets to |packet_callback| and returns the callback
242 // used to stop dumping. 239 // used to stop dumping.
243 virtual WebRtcStopRtpDumpCallback StartRtpDump( 240 virtual WebRtcStopRtpDumpCallback StartRtpDump(
244 bool incoming, 241 bool incoming,
245 bool outgoing, 242 bool outgoing,
246 const WebRtcRtpPacketCallback& packet_callback) = 0; 243 const WebRtcRtpPacketCallback& packet_callback) = 0;
244
245 // Starts a WebRTC event log for each peerconnection on the render process.
246 // A base file_path can be supplied, which will be extended to include several
247 // identifiers to ensure uniqueness. If a recording was already in progress,
248 // this call will return false and have no other effect.
249 virtual bool StartWebRTCEventLog(const base::FilePath& file_path) = 0;
ncarter (slow) 2016/05/20 18:27:21 This looks basically like a rename of the old func
Ivo-OOO until feb 6 2016/05/25 14:57:00 Good idea, done.
250
251 // Stops recording a WebRTC event log for each peerconnection on the render
252 // process. If no recording was in progress, this call will return false.
253 virtual bool StopWebRTCEventLog() = 0;
247 #endif 254 #endif
248 255
249 // Tells the ResourceDispatcherHost to resume a deferred navigation without 256 // Tells the ResourceDispatcherHost to resume a deferred navigation without
250 // transferring it to a new renderer process. 257 // transferring it to a new renderer process.
251 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 258 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
252 259
253 // Notifies the renderer that the timezone configuration of the system might 260 // Notifies the renderer that the timezone configuration of the system might
254 // have changed. 261 // have changed.
255 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0; 262 virtual void NotifyTimezoneChange(const std::string& zone_id) = 0;
256 263
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698