| 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..d80ccffb2d3b092351a4d7e721c3594543635e42
|
| --- /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 CHROME_BROWSER_RAPPOR_RAPPOR_REPORTER_H_
|
| +#define CHROME_BROWSER_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 // CHROME_BROWSER_RAPPOR_RAPPOR_REPORTER_H_
|
|
|