Chromium Code Reviews| Index: chrome/browser/net/predictor.h |
| diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h |
| index 4d3cb59fcfa219fc7961f8f95ba15b47192ef0b4..ab7444ebe7a95ff7bfdbb95b97e11febc34245b4 100644 |
| --- a/chrome/browser/net/predictor.h |
| +++ b/chrome/browser/net/predictor.h |
| @@ -178,6 +178,13 @@ class Predictor { |
| // (cache hits etc.). |
| void DiscardAllResults(); |
| + // Clears the preferences used by the predictor. Must be called on the UI |
| + // thread. |
| + void ClearPrefsOnUIThread(); |
|
eroman
2016/06/25 01:12:53
Same comment as earlier -- why not put this above
Charlie Harrison
2016/06/27 18:57:12
Sorry I missed this one. Done.
|
| + |
| + // Calls DiscardAllResults and posts a task to the UI thread to clear prefs. |
| + void DiscardAllResultAndClearPrefs(); |
|
eroman
2016/06/25 01:12:53
"AllResultAnd" --> "AllResultsAnd"
Charlie Harrison
2016/06/27 18:57:12
The perils of autocomplete :) Done.
|
| + |
| // Add hostname(s) to the queue for processing. |
| void ResolveList(const std::vector<GURL>& urls, |
| UrlInfo::ResolutionMotivation motivation); |
| @@ -209,13 +216,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, |
| + const base::ListValue* referral_list, |
| IOThread* io_thread, |
| ProfileIOData* profile_io_data); |