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

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

Issue 15675002: Add the UMA recording recall of URLRequests preconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style fix Created 7 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/connect_interceptor.h
diff --git a/chrome/browser/net/connect_interceptor.h b/chrome/browser/net/connect_interceptor.h
index 3372ad81e714bdbd0a2508f1fe5550d675edbd47..00b9ef1cef5ecb286208f18e1b96a8e5d17bbb3d 100644
--- a/chrome/browser/net/connect_interceptor.h
+++ b/chrome/browser/net/connect_interceptor.h
@@ -33,6 +33,8 @@ class ConnectInterceptor {
// Learn about referrers, and optionally preconnect based on history.
void WitnessURLRequest(net::URLRequest* request) const;
+ void WitnessPreconnect(const GURL& url);
+
private:
// Provide access to local class TimedCache for testing.
FRIEND_TEST_ALL_PREFIXES(ConnectInterceptorTest, TimedCacheRecall);
@@ -71,6 +73,7 @@ class ConnectInterceptor {
DISALLOW_COPY_AND_ASSIGN(TimedCache);
};
TimedCache timed_cache_;
+ TimedCache recent_preconnects_;
Predictor* const predictor_;
DISALLOW_COPY_AND_ASSIGN(ConnectInterceptor);

Powered by Google App Engine
This is Rietveld 408576698