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

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

Issue 1871533002: Change WebRTC log callback registration in browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review (olka) Created 4 years, 8 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 virtual void DisableAudioDebugRecordings() = 0; 219 virtual void DisableAudioDebugRecordings() = 0;
220 220
221 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0; 221 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0;
222 virtual void DisableEventLogRecordings() = 0; 222 virtual void DisableEventLogRecordings() = 0;
223 223
224 // When set, |callback| receives log messages regarding, for example, media 224 // When set, |callback| receives log messages regarding, for example, media
225 // devices (webcams, mics, etc) that were initially requested in the render 225 // devices (webcams, mics, etc) that were initially requested in the render
226 // process associated with this RenderProcessHost. 226 // process associated with this RenderProcessHost.
227 virtual void SetWebRtcLogMessageCallback( 227 virtual void SetWebRtcLogMessageCallback(
228 base::Callback<void(const std::string&)> callback) = 0; 228 base::Callback<void(const std::string&)> callback) = 0;
229 virtual void ClearWebRtcLogMessageCallback() = 0;
229 230
230 typedef base::Callback<void(scoped_ptr<uint8_t[]> packet_header, 231 typedef base::Callback<void(scoped_ptr<uint8_t[]> packet_header,
231 size_t header_length, 232 size_t header_length,
232 size_t packet_length, 233 size_t packet_length,
233 bool incoming)> WebRtcRtpPacketCallback; 234 bool incoming)> WebRtcRtpPacketCallback;
234 235
235 typedef base::Callback<void(bool incoming, bool outgoing)> 236 typedef base::Callback<void(bool incoming, bool outgoing)>
236 WebRtcStopRtpDumpCallback; 237 WebRtcStopRtpDumpCallback;
237 238
238 // Starts passing RTP packets to |packet_callback| and returns the callback 239 // Starts passing RTP packets to |packet_callback| and returns the callback
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 static void SetMaxRendererProcessCount(size_t count); 354 static void SetMaxRendererProcessCount(size_t count);
354 355
355 // Returns the current maximum number of renderer process hosts kept by the 356 // Returns the current maximum number of renderer process hosts kept by the
356 // content module. 357 // content module.
357 static size_t GetMaxRendererProcessCount(); 358 static size_t GetMaxRendererProcessCount();
358 }; 359 };
359 360
360 } // namespace content. 361 } // namespace content.
361 362
362 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 363 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698