summaryrefslogtreecommitdiff
path: root/chromium/components/rappor/reports.h
blob: 00da4c00b8f7c0ad3cb65eceefc25d7d0a0e2e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2015 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_REPORTS_H_
#define COMPONENTS_RAPPOR_REPORTS_H_

#include "components/rappor/reports.h"

#include "components/rappor/byte_vector_utils.h"

namespace rappor {

namespace internal {

// Generate a randomized report for a single metric/field.
ByteVector GenerateReport(const std::string& secret,
                          const NoiseParameters& parameters,
                          const ByteVector& value);

}  // namespace internal

}  // namespace rappor

#endif  // COMPONENTS_RAPPOR_REPORTS_H_