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

Unified Diff: chrome/browser/prerender/prerender_local_predictor.h

Issue 14949012: Add instrumentation to see how often a local predictor prerender could be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/prerender/prerender_handle.cc ('k') | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_local_predictor.h
===================================================================
--- chrome/browser/prerender/prerender_local_predictor.h (revision 199567)
+++ chrome/browser/prerender/prerender_local_predictor.h (working copy)
@@ -18,6 +18,7 @@
namespace content {
class SessionStorageNamespace;
+class WebContents;
}
namespace gfx {
@@ -84,6 +85,10 @@
EVENT_ISSUING_PRERENDER = 43,
EVENT_NO_PRERENDER_CANDIDATES = 44,
EVENT_GOT_HISTORY_ISSUING_LOOKUP = 45,
+ EVENT_TAB_HELPER_URL_SEEN = 46,
+ EVENT_TAB_HELPER_URL_SEEN_MATCH = 47,
+ EVENT_TAB_HELPER_URL_SEEN_NAMESPACE_MATCH = 48,
+ EVENT_PRERENDER_URL_LOOKUP_MULTIPLE_SOURCE_WEBCONTENTS_FOUND = 49,
EVENT_MAX_VALUE
};
@@ -103,6 +108,8 @@
void OnPLTEventForURL(const GURL& url, base::TimeDelta page_load_time);
+ void OnTabHelperURLSeen(const GURL& url, content::WebContents* web_contents);
+
private:
struct PrerenderProperties;
HistoryService* GetHistoryIfExists() const;
@@ -155,6 +162,12 @@
base::WeakPtrFactory<PrerenderLocalPredictor> weak_factory_;
+ // Indicates whether the current prerender represented by prerender_handle_
+ // matched a load in some tab contents, to shed light on how many prerenders
+ // that could have possibily been swapped in were not swapped in. For
+ // measurement purposes only.
+ bool current_prerender_would_have_matched_;
+
DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor);
};
« no previous file with comments | « chrome/browser/prerender/prerender_handle.cc ('k') | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698