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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.h

Issue 1563763002: Adds UMA histogram metrics for SafeBrowsing PVer4 methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@osb-pm-3
Patch Set: Add comment Created 4 years, 11 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 | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/protocol_manager.h
diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h
index 7faba475494e14179ecc6e8536bd711d18c837a4..8d3c1191ee31cca201514be8e1954a173377c1c3 100644
--- a/chrome/browser/safe_browsing/protocol_manager.h
+++ b/chrome/browser/safe_browsing/protocol_manager.h
@@ -163,6 +163,9 @@ class SafeBrowsingProtocolManager : public net::URLFetcherDelegate,
// Gethash attempted during error backoff, no request sent.
GET_HASH_BACKOFF_ERROR,
+ // Gethash attempted before min wait duration elapsed, no request sent.
+ GET_HASH_MIN_WAIT_DURATION_ERROR,
+
// Memory space for histograms is determined by the max. ALWAYS
// ADD NEW VALUES BEFORE THIS ONE.
GET_HASH_RESULT_MAX
@@ -173,6 +176,9 @@ class SafeBrowsingProtocolManager : public net::URLFetcherDelegate,
static void RecordGetHashResult(bool is_download,
ResultType result_type);
+ // Record a V4 GetHash result.
+ static void RecordGetV4HashResult(ResultType result_type);
+
// Record HTTP response code when there's no error in fetching an HTTP
// request, and the error code, when there is.
// |metric_name| is the name of the UMA metric to record the response code or
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698