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

Unified Diff: chrome/browser/prerender/prerender_manager.h

Issue 2411863002: [NoStatePrefetch] Kill renderer after preload scanning (Closed)
Patch Set: rebase and git cl format Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prerender/prerender_manager.h
diff --git a/chrome/browser/prerender/prerender_manager.h b/chrome/browser/prerender/prerender_manager.h
index 8f335719c06c6326398d5fdc61287bfc8d1d3936..f63fa275bb92da1275882ea54b417482534a1b79 100644
--- a/chrome/browser/prerender/prerender_manager.h
+++ b/chrome/browser/prerender/prerender_manager.h
@@ -261,6 +261,11 @@ class PrerenderManager : public content::NotificationObserver,
virtual PrerenderContents* GetPrerenderContentsForRoute(
int child_id, int route_id) const;
+ // Returns the PrerenderContents object that is found in active prerenders to
+ // match the |render_process_id|. Otherwise returns a nullptr.
+ PrerenderContents* GetPrerenderContentsForProcess(
+ int render_process_id) const;
+
// Returns a list of all WebContents being prerendered.
std::vector<content::WebContents*> GetAllPrerenderingContents() const;

Powered by Google App Engine
This is Rietveld 408576698