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

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: more comment changes Created 4 years, 7 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 f9aa90a6a0e1c6b0e1c649f4cea82c77011999b1..1229e67b36d375ace3fb0142e59b9ac79a54b5cb 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -316,6 +316,8 @@ class Predictor {
return url_request_context_getter_.get();
}
+ TimedCache* timed_cache() { return timed_cache_.get(); }
+
private:
FRIEND_TEST_ALL_PREFIXES(PredictorTest, BenefitLookupTest);
FRIEND_TEST_ALL_PREFIXES(PredictorTest, ShutdownWhenResolutionIsPendingTest);
@@ -604,6 +606,8 @@ class Predictor {
// An observer for testing.
PredictorObserver* observer_;
+ std::unique_ptr<TimedCache> timed_cache_;
+
std::unique_ptr<base::WeakPtrFactory<Predictor>> weak_factory_;
// Protects |preconnect_enabled_|.

Powered by Google App Engine
This is Rietveld 408576698