Index: components/rappor/rappor_reporter.h |
diff --git a/components/rappor/rappor_reporter.h b/components/rappor/rappor_reporter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8231a6d033bc18023ca3f6e016f27398960eb67f |
--- /dev/null |
+++ b/components/rappor/rappor_reporter.h |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2013 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. |
+ |
+#ifndef COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_ |
+#define COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_ |
+ |
+#include <assert.h> |
+#include <limits.h> |
+#include <math.h> |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "crypto/hmac.h" |
+#include "crypto/random.h" |
+ |
+namespace rappor { |
+ |
+class Rappor; |
+ |
+// The Rappor reporter generates privacy preserving randomized report data |
+// according to the scheme described in <put link here>. |
+class RapporReporter { |
+ public: |
+ explicit RapporReporter(const std::string& secret); |
+ |
+ std::vector<uint8_t> GetReport(const Rappor& rappor); |
+ |
+ private: |
+ const std::string secret_; |
+}; |
+ |
+} // namespace rappor |
+ |
+#endif // COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_ |