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

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

Issue 2498983005: predictors: Expose the initialization call to Android. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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_prefetch_predictor.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.h b/chrome/browser/predictors/resource_prefetch_predictor.h
index b50a4f6b46164f99638883b3d8fd619dafb18847..85b2ce270e553cf13b1ae6a119ab1cb1d00ec7b3 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -119,6 +119,10 @@ class ResourcePrefetchPredictor
Profile* profile);
~ResourcePrefetchPredictor() override;
+ // Starts initialization by posting a task to the DB thread to read the
+ // predictor database.
+ void StartInitialization();
+
// Thread safe.
static bool ShouldRecordRequest(net::URLRequest* request,
content::ResourceType resource_type);
@@ -248,10 +252,6 @@ class ResourcePrefetchPredictor
const PrefetchDataMap& data_map,
std::vector<GURL>* urls);
- // Starts initialization by posting a task to the DB thread to read the
- // predictor database.
- void StartInitialization();
-
// Callback for task to read predictor database. Takes ownership of
// all arguments.
void CreateCaches(std::unique_ptr<PrefetchDataMap> url_data_map,

Powered by Google App Engine
This is Rietveld 408576698