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

Unified Diff: components/rappor/proto/rappor_metric.proto

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cohorts Created 6 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
Index: components/rappor/proto/rappor_metric.proto
diff --git a/components/rappor/proto/rappor_metric.proto b/components/rappor/proto/rappor_metric.proto
new file mode 100644
index 0000000000000000000000000000000000000000..a8f5ca3c7a369af3db7cc79bc0d07ee390e187e4
--- /dev/null
+++ b/components/rappor/proto/rappor_metric.proto
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Contains information collected by the RAPPOR (Randomized Aggregatable
+// Privacy-Preserving Ordinal Responses) system.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package rappor;
+
+message RapporReports {
+ message Report {
+ // The name of the metric, hashed.
+ optional fixed64 name_hash = 1;
+
+ // The sequence of bits produced by random coin flips in
+ // RapporMetric::GetReport(). For a complete description of RAPPOR
+ // metrics, refer to the design document at:
+ // http://www.chromium.org/developers/design-documents/rappor
+ optional bytes bits = 2;
+ }
+ repeated Report report = 1;
+
+ // Which cohort this report belongs to, which varies the hash functions
+ // used in the bloom filter.
+ optional int32 cohort = 2;
+}

Powered by Google App Engine
This is Rietveld 408576698