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

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

Issue 2614473002: [NoStatePrefetch] Cancel repeated prefetches with FINAL_STATUS_DUPLICATE (Closed)
Patch Set: Update test to use kPrefetchReuseMins Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.h
diff --git a/chrome/browser/prerender/prerender_manager.h b/chrome/browser/prerender/prerender_manager.h
index 04780f73cdca11f02f7f218956b9ee6c3a1106ea..d29644c31f55c3da486f8e60ae87183bbc837672 100644
--- a/chrome/browser/prerender/prerender_manager.h
+++ b/chrome/browser/prerender/prerender_manager.h
@@ -540,10 +540,15 @@ class PrerenderManager : public content::NotificationObserver,
void DeleteOldWebContents();
// Get information associated with a possible prefetch of |url|.
+ // |origin| may be null, in which case the origin is not returned.
void GetPrefetchInformation(const GURL& url,
base::TimeDelta* prefetch_age,
Origin* origin);
+ // Called when a prefetch has been used. Prefetches avoid cache revalidation
+ // only once.
+ void OnPrefetchUsed(const GURL& url);
+
// Cleans up old NavigationRecord's.
void CleanUpOldNavigations(std::vector<NavigationRecord>* navigations,
base::TimeDelta max_age);
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698