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

Side by Side Diff: chrome/common/metrics/caching_permuted_entropy_provider.h

Issue 23097007: Create variations target that depends on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/metrics/entropy_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_METRICS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_ 5 #ifndef CHROME_COMMON_METRICS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_
6 #define CHROME_COMMON_METRICS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_ 6 #define CHROME_COMMON_METRICS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "chrome/common/metrics/entropy_provider.h"
12 #include "chrome/common/metrics/proto/permuted_entropy_cache.pb.h" 11 #include "chrome/common/metrics/proto/permuted_entropy_cache.pb.h"
12 #include "components/variations/entropy_provider.h"
13 13
14 class PrefService; 14 class PrefService;
15 class PrefRegistrySimple; 15 class PrefRegistrySimple;
16 16
17 namespace metrics { 17 namespace metrics {
18 18
19 // CachingPermutedEntropyProvider is an entropy provider that uses the same 19 // CachingPermutedEntropyProvider is an entropy provider that uses the same
20 // algorithm as the PermutedEntropyProvider, but caches the results in Local 20 // algorithm as the PermutedEntropyProvider, but caches the results in Local
21 // State between runs. 21 // State between runs.
22 class CachingPermutedEntropyProvider : public PermutedEntropyProvider { 22 class CachingPermutedEntropyProvider : public PermutedEntropyProvider {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 base::ThreadChecker thread_checker_; 56 base::ThreadChecker thread_checker_;
57 PrefService* local_state_; 57 PrefService* local_state_;
58 mutable PermutedEntropyCache cache_; 58 mutable PermutedEntropyCache cache_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(CachingPermutedEntropyProvider); 60 DISALLOW_COPY_AND_ASSIGN(CachingPermutedEntropyProvider);
61 }; 61 };
62 62
63 } // namespace metrics 63 } // namespace metrics
64 64
65 #endif // CHROME_COMMON_METRICS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_ 65 #endif // CHROME_COMMON_METRICS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/metrics/entropy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698