Chromium Code Reviews

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

Issue 264793017: Implements RTP header dumping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 187 matching lines...)
198 198
199 #if defined(ENABLE_WEBRTC) 199 #if defined(ENABLE_WEBRTC)
200 virtual void EnableAecDump(const base::FilePath& file) = 0; 200 virtual void EnableAecDump(const base::FilePath& file) = 0;
201 virtual void DisableAecDump() = 0; 201 virtual void DisableAecDump() = 0;
202 202
203 // When set, |callback| receives log messages regarding, for example, media 203 // When set, |callback| receives log messages regarding, for example, media
204 // devices (webcams, mics, etc) that were initially requested in the render 204 // devices (webcams, mics, etc) that were initially requested in the render
205 // process associated with this RenderProcessHost. 205 // process associated with this RenderProcessHost.
206 virtual void SetWebRtcLogMessageCallback( 206 virtual void SetWebRtcLogMessageCallback(
207 base::Callback<void(const std::string&)> callback) = 0; 207 base::Callback<void(const std::string&)> callback) = 0;
208
209 typedef base::Callback<void(const uint8* packet_header,
210 size_t header_length,
211 size_t packet_length,
212 bool incoming)> WebRtcRtpPacketCallback;
213
214 typedef base::Callback<void(bool incoming, bool outgoing)>
215 WebRtcStopRtpDumpCallback;
216
217 // Starts passing RTP packets to |packet_callback| and returns the callback
218 // used to stop dumping. StartRtpDump must be called on the UI thread.
219 // The returned WebRtcStopRtpDumpCallback and |packet_callback| must be called
220 // on the UI thread too.
jam 2014/05/21 23:50:09 nit: remove all mentions of UI thread in the comme
221 virtual WebRtcStopRtpDumpCallback StartRtpDump(
222 bool incoming,
223 bool outgoing,
224 const WebRtcRtpPacketCallback& packet_callback) = 0;
208 #endif 225 #endif
209 226
210 // Tells the ResourceDispatcherHost to resume a deferred navigation without 227 // Tells the ResourceDispatcherHost to resume a deferred navigation without
211 // transferring it to a new renderer process. 228 // transferring it to a new renderer process.
212 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 229 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
213 230
214 // Notifies the renderer that the timezone configuration of the system might 231 // Notifies the renderer that the timezone configuration of the system might
215 // have changed. 232 // have changed.
216 virtual void NotifyTimezoneChange() = 0; 233 virtual void NotifyTimezoneChange() = 0;
217 234
(...skipping 48 matching lines...)
266 static void SetMaxRendererProcessCount(size_t count); 283 static void SetMaxRendererProcessCount(size_t count);
267 284
268 // Returns the current max number of renderer processes used by the content 285 // Returns the current max number of renderer processes used by the content
269 // module. 286 // module.
270 static size_t GetMaxRendererProcessCount(); 287 static size_t GetMaxRendererProcessCount();
271 }; 288 };
272 289
273 } // namespace content. 290 } // namespace content.
274 291
275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 292 #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