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 7869e0f4ac666ec836f2a837f6b4af0d7b0f922c..515683f291070843ef31587725759afd88695e0c 100644 |
--- a/chrome/browser/safe_browsing/protocol_manager.h |
+++ b/chrome/browser/safe_browsing/protocol_manager.h |
@@ -158,6 +158,21 @@ class SafeBrowsingProtocolManager : public URLFetcher::Delegate { |
return additional_query_; |
} |
+ // Enumerate failures for histogramming purposes. DO NOT CHANGE THE |
+ // ORDERING OF THESE VALUES. |
+ enum ResultType { |
+ GET_HASH_STATUS_200, |
Erik does not do reviews
2010/12/22 19:29:19
Is it worth tracking other status codes here? It
Scott Hess - ex-Googler
2010/12/22 20:41:51
Hmm. I vote for a separate histogram. It can enu
|
+ GET_HASH_STATUS_204, |
+ GET_HASH_NO_HITS, // None of the full hashes matched. |
lzheng
2010/12/22 00:24:58
Can you add some more comments to clarify that GET
Scott Hess - ex-Googler
2010/12/22 20:41:51
In thinking this through, my understanding is that
Scott Hess - ex-Googler
2010/12/22 20:49:36
Glad I thought more, because GET_HASH_STATUS_200 c
|
+ |
+ // Memory space for histograms is determined by the max. ALWAYS |
+ // ADD NEW VALUES BEFORE THIS ONE. |
+ GET_HASH_RESULT_MAX |
+ }; |
+ |
+ // Record a GetHash result. |
+ static void RecordGetHashResult(ResultType result_type); |
+ |
protected: |
// Constructs a SafeBrowsingProtocolManager for |sb_service| that issues |
// network requests using |request_context_getter|. When |disable_auto_update| |