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

Unified Diff: chrome/browser/predictors/resource_prefetcher_manager.h

Issue 2373443002: predictors: Key the resource prefetcher by URL, not navigation. (Closed)
Patch Set: Created 4 years, 3 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/predictors/resource_prefetcher_manager.h
diff --git a/chrome/browser/predictors/resource_prefetcher_manager.h b/chrome/browser/predictors/resource_prefetcher_manager.h
index cf925d34bb93e2250656c0a9b249ba162288932a..73d3913329ca8d2af1659b774eba440cb4812c79 100644
--- a/chrome/browser/predictors/resource_prefetcher_manager.h
+++ b/chrome/browser/predictors/resource_prefetcher_manager.h
@@ -26,7 +26,7 @@ class ResourcePrefetchPredictor;
// - Created and owned by the resource prefetch predictor.
// - Needs to be refcounted as it is de-referenced on two different threads.
// - Created on the UI thread, but most functions are called in the IO thread.
-// - Will only allow one inflight prefresh per main frame URL.
+// - Will only allow one inflight prefresh per host.
class ResourcePrefetcherManager
: public ResourcePrefetcher::Delegate,
public base::RefCountedThreadSafe<ResourcePrefetcherManager> {
@@ -45,10 +45,8 @@ class ResourcePrefetcherManager
void ShutdownOnIOThread();
// Will create a new ResourcePrefetcher for the main frame url of the input
- // navigation if there isn't one already for the same URL or host (for host
- // based).
+ // navigation if there isn't one already for the same host.
void MaybeAddPrefetch(const NavigationID& navigation_id,
- PrefetchKeyType key_type,
const std::vector<GURL>& urls);
// Stops the ResourcePrefetcher for the input navigation, if one was in
« no previous file with comments | « chrome/browser/predictors/resource_prefetcher.cc ('k') | chrome/browser/predictors/resource_prefetcher_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698