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

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

Issue 307063003: Revert 273745 "Implements RTP header dumping." due to memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 #if defined(ENABLE_WEBRTC) 201 #if defined(ENABLE_WEBRTC)
202 virtual void EnableAecDump(const base::FilePath& file) = 0; 202 virtual void EnableAecDump(const base::FilePath& file) = 0;
203 virtual void DisableAecDump() = 0; 203 virtual void DisableAecDump() = 0;
204 204
205 // When set, |callback| receives log messages regarding, for example, media 205 // When set, |callback| receives log messages regarding, for example, media
206 // devices (webcams, mics, etc) that were initially requested in the render 206 // devices (webcams, mics, etc) that were initially requested in the render
207 // process associated with this RenderProcessHost. 207 // process associated with this RenderProcessHost.
208 virtual void SetWebRtcLogMessageCallback( 208 virtual void SetWebRtcLogMessageCallback(
209 base::Callback<void(const std::string&)> callback) = 0; 209 base::Callback<void(const std::string&)> callback) = 0;
210
211 typedef base::Callback<void(const uint8* packet_header,
212 size_t header_length,
213 size_t packet_length,
214 bool incoming)> WebRtcRtpPacketCallback;
215
216 typedef base::Callback<void(bool incoming, bool outgoing)>
217 WebRtcStopRtpDumpCallback;
218
219 // Starts passing RTP packets to |packet_callback| and returns the callback
220 // used to stop dumping.
221 virtual WebRtcStopRtpDumpCallback StartRtpDump(
222 bool incoming,
223 bool outgoing,
224 const WebRtcRtpPacketCallback& packet_callback) = 0;
225 #endif 210 #endif
226 211
227 // Tells the ResourceDispatcherHost to resume a deferred navigation without 212 // Tells the ResourceDispatcherHost to resume a deferred navigation without
228 // transferring it to a new renderer process. 213 // transferring it to a new renderer process.
229 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 214 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
230 215
231 // Notifies the renderer that the timezone configuration of the system might 216 // Notifies the renderer that the timezone configuration of the system might
232 // have changed. 217 // have changed.
233 virtual void NotifyTimezoneChange() = 0; 218 virtual void NotifyTimezoneChange() = 0;
234 219
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 static void SetMaxRendererProcessCount(size_t count); 268 static void SetMaxRendererProcessCount(size_t count);
284 269
285 // Returns the current max number of renderer processes used by the content 270 // Returns the current max number of renderer processes used by the content
286 // module. 271 // module.
287 static size_t GetMaxRendererProcessCount(); 272 static size_t GetMaxRendererProcessCount();
288 }; 273 };
289 274
290 } // namespace content. 275 } // namespace content.
291 276
292 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 277 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698