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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_
6 #define COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_
7
8 #include <assert.h>
9 #include <limits.h>
10 #include <math.h>
11
12 #include <string>
13 #include <vector>
14
15 #include "crypto/hmac.h"
16 #include "crypto/random.h"
17
18 namespace rappor {
19
20 class Rappor;
21
22 // The Rappor reporter generates privacy preserving randomized report data
23 // according to the scheme described in <put link here>.
24 class RapporReporter {
25 public:
26 explicit RapporReporter(const std::string& secret);
27
28 std::vector<uint8_t> GetReport(const Rappor& rappor);
29
30 private:
31 const std::string secret_;
32 };
33
34 } // namespace rappor
35
36 #endif // COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698