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

Unified Diff: components/rappor/rappor_service.h

Issue 509203002: Create a mechanism for reporting rappor metrics from non-UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: components/rappor/rappor_service.h
diff --git a/components/rappor/rappor_service.h b/components/rappor/rappor_service.h
index f02a85a3fe65e48d13738531627496c854a78b18..9811323dd60044ffc416ccfb8afe34b911e7895e 100644
--- a/components/rappor/rappor_service.h
+++ b/components/rappor/rappor_service.h
@@ -31,6 +31,7 @@ struct RapporParameters;
enum RapporType {
// For sampling the eTLD+1 of a URL.
ETLD_PLUS_ONE_RAPPOR_TYPE = 0,
+ SAFE_BROWSING_PATTERN_RAPPOR_TYPE,
NUM_RAPPOR_TYPES
};
@@ -109,6 +110,9 @@ class RapporService {
// A private LogUploader instance for sending reports to the server.
scoped_ptr<LogUploader> uploader_;
+ // True if we are collecting all metrics instead of only whitelisted ones.
+ bool all_metrics_enabled_;
+
// We keep all registered metrics in a map, from name to metric.
// The map owns the metrics it contains.
std::map<std::string, RapporMetric*> metrics_map_;

Powered by Google App Engine
This is Rietveld 408576698