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

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

Issue 140633004: Reland CL to implement browser-side logging to WebRtc log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: These are the changes that should fix crbug.com/338848 Created 6 years, 10 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 virtual void ResumeRequestsForView(int route_id) = 0; 208 virtual void ResumeRequestsForView(int route_id) = 0;
209 209
210 // Checks that the given renderer can request |url|, if not it sets it to 210 // Checks that the given renderer can request |url|, if not it sets it to
211 // about:blank. 211 // about:blank.
212 // |empty_allowed| must be set to false for navigations for security reasons. 212 // |empty_allowed| must be set to false for navigations for security reasons.
213 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; 213 virtual void FilterURL(bool empty_allowed, GURL* url) = 0;
214 214
215 #if defined(ENABLE_WEBRTC) 215 #if defined(ENABLE_WEBRTC)
216 virtual void EnableAecDump(const base::FilePath& file) = 0; 216 virtual void EnableAecDump(const base::FilePath& file) = 0;
217 virtual void DisableAecDump() = 0; 217 virtual void DisableAecDump() = 0;
218
219 // When set, |callback| receives log messages regarding, for example. media
220 // devices (webcams, mics, etc) that were initially requested in the render
221 // process associated with this RenderProcessHost.
222 virtual void SetWebRtcLogMessageCallback(
223 base::Callback<void(const std::string&)> callback) = 0;
218 #endif 224 #endif
219 225
220 // Static management functions ----------------------------------------------- 226 // Static management functions -----------------------------------------------
221 227
222 // Flag to run the renderer in process. This is primarily 228 // Flag to run the renderer in process. This is primarily
223 // for debugging purposes. When running "in process", the 229 // for debugging purposes. When running "in process", the
224 // browser maintains a single RenderProcessHost which communicates 230 // browser maintains a single RenderProcessHost which communicates
225 // to a RenderProcess which is instantiated in the same process 231 // to a RenderProcess which is instantiated in the same process
226 // with the Browser. All IPC between the Browser and the 232 // with the Browser. All IPC between the Browser and the
227 // Renderer is the same, it's just not crossing a process boundary. 233 // Renderer is the same, it's just not crossing a process boundary.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // module. 277 // module.
272 static size_t GetMaxRendererProcessCount(); 278 static size_t GetMaxRendererProcessCount();
273 279
274 static void RegisterRendererMainThreadFactory( 280 static void RegisterRendererMainThreadFactory(
275 RendererMainThreadFactoryFunction create); 281 RendererMainThreadFactoryFunction create);
276 }; 282 };
277 283
278 } // namespace content. 284 } // namespace content.
279 285
280 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 286 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698