diff options
author | holte@chromium.org <holte@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 04:06:10 +0000 |
---|---|---|
committer | holte@chromium.org <holte@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 04:06:10 +0000 |
commit | 2a172e455f7060e0786abd37de53a39e21aa5b5e (patch) | |
tree | dd883647e4c6931f92123fe44e738a93f49b924e /components/metrics/metrics_hashes.h | |
parent | 0433b638d68d751a87134b026034e2e46bef4f7b (diff) | |
download | chromium_src-2a172e455f7060e0786abd37de53a39e21aa5b5e.zip chromium_src-2a172e455f7060e0786abd37de53a39e21aa5b5e.tar.gz chromium_src-2a172e455f7060e0786abd37de53a39e21aa5b5e.tar.bz2 |
Implementation of Randomized Aggregatable Privacy-Preserving Ordinal Responses (RAPPORs).
See the design doc at http://www.chromium.org/developers/design-documents/rappor
BUG=328168
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/49753002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/metrics/metrics_hashes.h')
-rw-r--r-- | components/metrics/metrics_hashes.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/metrics/metrics_hashes.h b/components/metrics/metrics_hashes.h new file mode 100644 index 0000000..0906c0a --- /dev/null +++ b/components/metrics/metrics_hashes.h @@ -0,0 +1,20 @@ +// Copyright 2014 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_METRICS_METRICS_HASHES_H_ +#define COMPONENTS_METRICS_METRICS_HASHES_H_ + +#include <string> + +#include "base/basictypes.h" + +namespace metrics { + +// Computes a uint64 hash of a given string based on its MD5 hash. Suitable for +// metric names. +uint64 HashMetricName(const std::string& name); + +} // namespace metrics + +#endif // COMPONENTS_METRICS_METRICS_HASHES_H_ |