| OLD | NEW |
| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Called to resume the requests for a view created through window.open that | 199 // Called to resume the requests for a view created through window.open that |
| 200 // were initially blocked. | 200 // were initially blocked. |
| 201 virtual void ResumeRequestsForView(int route_id) = 0; | 201 virtual void ResumeRequestsForView(int route_id) = 0; |
| 202 | 202 |
| 203 // Checks that the given renderer can request |url|, if not it sets it to | 203 // Checks that the given renderer can request |url|, if not it sets it to |
| 204 // about:blank. | 204 // about:blank. |
| 205 // |empty_allowed| must be set to false for navigations for security reasons. | 205 // |empty_allowed| must be set to false for navigations for security reasons. |
| 206 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; | 206 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; |
| 207 | 207 |
| 208 #if defined(ENABLE_WEBRTC) | 208 #if defined(ENABLE_WEBRTC) |
| 209 virtual void EnableAecDump(const base::FilePath& file) = 0; | 209 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0; |
| 210 virtual void DisableAecDump() = 0; | 210 virtual void DisableAudioDebugRecordings() = 0; |
| 211 | 211 |
| 212 // When set, |callback| receives log messages regarding, for example, media | 212 // When set, |callback| receives log messages regarding, for example, media |
| 213 // devices (webcams, mics, etc) that were initially requested in the render | 213 // devices (webcams, mics, etc) that were initially requested in the render |
| 214 // process associated with this RenderProcessHost. | 214 // process associated with this RenderProcessHost. |
| 215 virtual void SetWebRtcLogMessageCallback( | 215 virtual void SetWebRtcLogMessageCallback( |
| 216 base::Callback<void(const std::string&)> callback) = 0; | 216 base::Callback<void(const std::string&)> callback) = 0; |
| 217 | 217 |
| 218 typedef base::Callback<void(scoped_ptr<uint8[]> packet_header, | 218 typedef base::Callback<void(scoped_ptr<uint8[]> packet_header, |
| 219 size_t header_length, | 219 size_t header_length, |
| 220 size_t packet_length, | 220 size_t packet_length, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 static void SetMaxRendererProcessCount(size_t count); | 333 static void SetMaxRendererProcessCount(size_t count); |
| 334 | 334 |
| 335 // Returns the current maximum number of renderer process hosts kept by the | 335 // Returns the current maximum number of renderer process hosts kept by the |
| 336 // content module. | 336 // content module. |
| 337 static size_t GetMaxRendererProcessCount(); | 337 static size_t GetMaxRendererProcessCount(); |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 } // namespace content. | 340 } // namespace content. |
| 341 | 341 |
| 342 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 342 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |