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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual void SetSuddenTerminationAllowed(bool allowed) = 0; | 206 virtual void SetSuddenTerminationAllowed(bool allowed) = 0; |
207 // Returns true if the process can be abnormally terminated. | 207 // Returns true if the process can be abnormally terminated. |
208 virtual bool SuddenTerminationAllowed() const = 0; | 208 virtual bool SuddenTerminationAllowed() const = 0; |
209 | 209 |
210 // Returns how long the child has been idle. The definition of idle | 210 // Returns how long the child has been idle. The definition of idle |
211 // depends on when a derived class calls mark_child_process_activity_time(). | 211 // depends on when a derived class calls mark_child_process_activity_time(). |
212 // This is a rough indicator and its resolution should not be better than | 212 // This is a rough indicator and its resolution should not be better than |
213 // 10 milliseconds. | 213 // 10 milliseconds. |
214 virtual base::TimeDelta GetChildProcessIdleTime() const = 0; | 214 virtual base::TimeDelta GetChildProcessIdleTime() const = 0; |
215 | 215 |
216 // Called to resume the requests for a view created through window.open that | |
217 // were initially blocked. | |
218 virtual void ResumeRequestsForView(int route_id) = 0; | |
219 | |
220 // Checks that the given renderer can request |url|, if not it sets it to | 216 // Checks that the given renderer can request |url|, if not it sets it to |
221 // about:blank. | 217 // about:blank. |
222 // |empty_allowed| must be set to false for navigations for security reasons. | 218 // |empty_allowed| must be set to false for navigations for security reasons. |
223 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; | 219 virtual void FilterURL(bool empty_allowed, GURL* url) = 0; |
224 | 220 |
225 #if defined(ENABLE_WEBRTC) | 221 #if defined(ENABLE_WEBRTC) |
226 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0; | 222 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0; |
227 virtual void DisableAudioDebugRecordings() = 0; | 223 virtual void DisableAudioDebugRecordings() = 0; |
228 | 224 |
229 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0; | 225 virtual void EnableEventLogRecordings(const base::FilePath& file) = 0; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 static void SetMaxRendererProcessCount(size_t count); | 357 static void SetMaxRendererProcessCount(size_t count); |
362 | 358 |
363 // Returns the current maximum number of renderer process hosts kept by the | 359 // Returns the current maximum number of renderer process hosts kept by the |
364 // content module. | 360 // content module. |
365 static size_t GetMaxRendererProcessCount(); | 361 static size_t GetMaxRendererProcessCount(); |
366 }; | 362 }; |
367 | 363 |
368 } // namespace content. | 364 } // namespace content. |
369 | 365 |
370 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 366 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |