Chromium Code Reviews| 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..8f5ebff9425783d14d824bd689ae586d75d4c8ec |
| --- /dev/null |
| +++ b/components/rappor/proto/rappor_metric.proto |
| @@ -0,0 +1,33 @@ |
| +// 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. |
| +// |
| +// For a full description of the rappor metrics, see |
| +// http://www.chromium.org/developers/design-documents/rappor |
| + |
| +syntax = "proto2"; |
| + |
| +option optimize_for = LITE_RUNTIME; |
| + |
| +package rappor; |
| + |
| +message RapporReports { |
|
ulfar
2014/02/07 20:19:02
What about version numbers? We could piggy-back v
Steven Holte
2014/02/07 21:08:16
Done.
|
| + 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. |
|
ulfar
2014/02/07 20:19:02
Better comment:
// Which cohort this report belon
Steven Holte
2014/02/07 21:08:16
Done.
|
| + optional int32 cohort = 2; |
| +} |