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

Unified Diff: components/rappor/rappor_reporter.h

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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_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_

Powered by Google App Engine
This is Rietveld 408576698