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

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

Issue 1246283003: Split out audio debug recording from RenderProcessHostImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 2 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 <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Called to resume the requests for a view created through window.open that 214 // Called to resume the requests for a view created through window.open that
215 // were initially blocked. 215 // were initially blocked.
216 virtual void ResumeRequestsForView(int route_id) = 0; 216 virtual void ResumeRequestsForView(int route_id) = 0;
217 217
218 // Checks that the given renderer can request |url|, if not it sets it to 218 // Checks that the given renderer can request |url|, if not it sets it to
219 // about:blank. 219 // about:blank.
220 // |empty_allowed| must be set to false for navigations for security reasons. 220 // |empty_allowed| must be set to false for navigations for security reasons.
221 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; 221 virtual void FilterURL(bool empty_allowed, GURL* url) = 0;
222 222
223 #if defined(ENABLE_WEBRTC) 223 #if defined(ENABLE_WEBRTC)
224 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0;
225 virtual void DisableAudioDebugRecordings() = 0;
226
227 // When set, |callback| receives log messages regarding, for example, media 224 // When set, |callback| receives log messages regarding, for example, media
228 // devices (webcams, mics, etc) that were initially requested in the render 225 // devices (webcams, mics, etc) that were initially requested in the render
229 // process associated with this RenderProcessHost. 226 // process associated with this RenderProcessHost.
230 virtual void SetWebRtcLogMessageCallback( 227 virtual void SetWebRtcLogMessageCallback(
231 base::Callback<void(const std::string&)> callback) = 0; 228 base::Callback<void(const std::string&)> callback) = 0;
232 229
233 typedef base::Callback<void(scoped_ptr<uint8[]> packet_header, 230 typedef base::Callback<void(scoped_ptr<uint8[]> packet_header,
234 size_t header_length, 231 size_t header_length,
235 size_t packet_length, 232 size_t packet_length,
236 bool incoming)> WebRtcRtpPacketCallback; 233 bool incoming)> WebRtcRtpPacketCallback;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 static void SetMaxRendererProcessCount(size_t count); 345 static void SetMaxRendererProcessCount(size_t count);
349 346
350 // Returns the current maximum number of renderer process hosts kept by the 347 // Returns the current maximum number of renderer process hosts kept by the
351 // content module. 348 // content module.
352 static size_t GetMaxRendererProcessCount(); 349 static size_t GetMaxRendererProcessCount();
353 }; 350 };
354 351
355 } // namespace content. 352 } // namespace content.
356 353
357 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 354 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698