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

Unified Diff: content/browser/renderer_host/duplicate_content_resource_handler.h

Issue 10824236: Only track http and https in duplicate resource handler metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cosnt Created 8 years, 4 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 | « no previous file | content/browser/renderer_host/duplicate_content_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/duplicate_content_resource_handler.h
diff --git a/content/browser/renderer_host/duplicate_content_resource_handler.h b/content/browser/renderer_host/duplicate_content_resource_handler.h
index 8ca80e4b2ceb8d35d598a093c6d70bdc5fea675f..ac30dfc335db0e070a6a135a1beaca8c8aba2f46 100644
--- a/content/browser/renderer_host/duplicate_content_resource_handler.h
+++ b/content/browser/renderer_host/duplicate_content_resource_handler.h
@@ -56,6 +56,10 @@ class DuplicateContentResourceHandler: public LayeredResourceHandler {
MH_UINT32 pmurhash_ph1_;
MH_UINT32 pmurhash_pcarry_;
+ // Used to track if it's a request we're interested in. If it's not, then we
+ // early out to avoid calculating the hash unnecessarily.
+ bool track_request_;
+
DISALLOW_COPY_AND_ASSIGN(DuplicateContentResourceHandler);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/duplicate_content_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698