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

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

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just comments / minor restructuring (trybots previous) Created 4 years, 12 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 virtual void SetSuddenTerminationAllowed(bool allowed) = 0; 204 virtual void SetSuddenTerminationAllowed(bool allowed) = 0;
205 // Returns true if the process can be abnormally terminated. 205 // Returns true if the process can be abnormally terminated.
206 virtual bool SuddenTerminationAllowed() const = 0; 206 virtual bool SuddenTerminationAllowed() const = 0;
207 207
208 // Returns how long the child has been idle. The definition of idle 208 // Returns how long the child has been idle. The definition of idle
209 // depends on when a derived class calls mark_child_process_activity_time(). 209 // depends on when a derived class calls mark_child_process_activity_time().
210 // This is a rough indicator and its resolution should not be better than 210 // This is a rough indicator and its resolution should not be better than
211 // 10 milliseconds. 211 // 10 milliseconds.
212 virtual base::TimeDelta GetChildProcessIdleTime() const = 0; 212 virtual base::TimeDelta GetChildProcessIdleTime() const = 0;
213 213
214 // Called to resume the requests for a view created through window.open that 214 // Called to resume the requests for a frame created through window.open that
215 // were initially blocked. 215 // were initially blocked.
216 virtual void ResumeRequestsForView(int route_id) = 0; 216 virtual void ResumeRequestsForFrame(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; 224 virtual void EnableAudioDebugRecordings(const base::FilePath& file) = 0;
225 virtual void DisableAudioDebugRecordings() = 0; 225 virtual void DisableAudioDebugRecordings() = 0;
226 226
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 static void SetMaxRendererProcessCount(size_t count); 359 static void SetMaxRendererProcessCount(size_t count);
360 360
361 // Returns the current maximum number of renderer process hosts kept by the 361 // Returns the current maximum number of renderer process hosts kept by the
362 // content module. 362 // content module.
363 static size_t GetMaxRendererProcessCount(); 363 static size_t GetMaxRendererProcessCount();
364 }; 364 };
365 365
366 } // namespace content. 366 } // namespace content.
367 367
368 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 368 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698