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

Unified Diff: chrome/browser/net/predictor.h

Issue 2085643002: Don't clear the net predictors prefs on startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO Created 4 years, 6 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 | « chrome/browser/chrome_net_benchmarking_message_filter.cc ('k') | chrome/browser/net/predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/predictor.h
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index 4d3cb59fcfa219fc7961f8f95ba15b47192ef0b4..527a366eba090f0a43ab5d8c8d5f701205389f08 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -158,6 +158,14 @@ class Predictor {
static std::vector<GURL> GetPredictedUrlListAtStartup(
PrefService* user_prefs);
+ // Calls ClearPrefsOnUIThread and posts a task to the IO thread to
+ // DiscardAllResults.
+ void DiscardAllResultsAndClearPrefsOnUIThread();
+
+ // Clears the preferences used by the predictor. Must be called on the UI
+ // thread.
+ void ClearPrefsOnUIThread();
+
static void set_max_queueing_delay(int max_queueing_delay_ms);
static void set_max_parallel_resolves(size_t max_parallel_resolves);
@@ -209,13 +217,11 @@ class Predictor {
// values into the current referrer list.
void DeserializeReferrers(const base::ListValue& referral_list);
- void DeserializeReferrersThenDelete(base::ListValue* referral_list);
-
void DiscardInitialNavigationHistory();
void FinalizeInitializationOnIOThread(
const std::vector<GURL>& urls_to_prefetch,
- base::ListValue* referral_list,
+ std::unique_ptr<base::ListValue> referral_list,
IOThread* io_thread,
ProfileIOData* profile_io_data);
« no previous file with comments | « chrome/browser/chrome_net_benchmarking_message_filter.cc ('k') | chrome/browser/net/predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698