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

Unified Diff: components/safe_browsing_db/v4_get_hash_protocol_manager.h

Issue 2441923003: PVer4: Add UMA metrics for time taken to: load DB, do prefix check, (Closed)
Patch Set: nparker@'s review Created 4 years, 2 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: components/safe_browsing_db/v4_get_hash_protocol_manager.h
diff --git a/components/safe_browsing_db/v4_get_hash_protocol_manager.h b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
index 720e09684cb42c8aa55c2007a5e243e5ec893624..fb736d905da5fe047256ef3855c4958c3401f923 100644
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.h
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
@@ -106,7 +106,8 @@ struct FullHashCallbackInfo {
std::unique_ptr<net::URLFetcher> fetcher,
const FullHashToStoreAndHashPrefixesMap&
full_hash_to_store_and_hash_prefixes,
- const FullHashCallback& callback);
+ const FullHashCallback& callback,
+ const base::Time& network_start_time);
~FullHashCallbackInfo();
// The FullHashInfo objects retrieved from cache. These are merged with the
@@ -125,6 +126,10 @@ struct FullHashCallbackInfo {
// which to look for a full hash match.
FullHashToStoreAndHashPrefixesMap full_hash_to_store_and_hash_prefixes;
+ // Used to measure how long did it take to fetch the full hash response from
+ // the server.
+ base::Time network_start_time;
+
// The prefixes that were requested from the server.
std::vector<HashPrefix> prefixes_requested;
};

Powered by Google App Engine
This is Rietveld 408576698