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

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

Issue 1567903002: [Test - Do Not Commit] Stop blocking requests for new windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge onto #371523 Created 4 years, 11 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 <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
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
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_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698