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

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

Issue 1857383002: Refactor net predictor to use ResourceThrottles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/net/predictor.h
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index 53ea6323ca8a610e9bbcc57faba79fa4666ee3c4..b2f2e7c23c82354a0bb0e57debc5c5cdbac9b9cf 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -307,6 +307,7 @@ class Predictor {
return predictor_enabled_;
}
+ TimedCache* timed_cache() { return timed_cache_.get(); }
private:
FRIEND_TEST_ALL_PREFIXES(PredictorTest, BenefitLookupTest);
@@ -595,6 +596,8 @@ class Predictor {
// An observer for testing.
PredictorObserver* observer_;
+ std::unique_ptr<TimedCache> timed_cache_;
+
scoped_ptr<base::WeakPtrFactory<Predictor> > weak_factory_;
DISALLOW_COPY_AND_ASSIGN(Predictor);

Powered by Google App Engine
This is Rietveld 408576698