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

Unified Diff: components/variations/caching_permuted_entropy_provider.h

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/variations/caching_permuted_entropy_provider.h
diff --git a/components/variations/caching_permuted_entropy_provider.h b/components/variations/caching_permuted_entropy_provider.h
index 0ec859fb8cce3641bb5038d0ff2b15d5f2c044e0..ce76449606d7d6f0e86ebeeb184a68e751ee2f32 100644
--- a/components/variations/caching_permuted_entropy_provider.h
+++ b/components/variations/caching_permuted_entropy_provider.h
@@ -5,8 +5,11 @@
#ifndef COMPONENTS_VARIATIONS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_
#define COMPONENTS_VARIATIONS_CACHING_PERMUTED_ENTROPY_PROVIDER_H_
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "base/threading/thread_checker.h"
#include "components/variations/entropy_provider.h"
#include "components/variations/proto/permuted_entropy_cache.pb.h"
@@ -25,7 +28,7 @@ class CachingPermutedEntropyProvider : public PermutedEntropyProvider {
// prefs service with the specified |low_entropy_source|, which should have a
// value in the range of [0, low_entropy_source_max).
CachingPermutedEntropyProvider(PrefService* local_state,
- uint16 low_entropy_source,
+ uint16_t low_entropy_source,
size_t low_entropy_source_max);
~CachingPermutedEntropyProvider() override;
@@ -38,7 +41,7 @@ class CachingPermutedEntropyProvider : public PermutedEntropyProvider {
private:
// PermutedEntropyProvider overrides:
- uint16 GetPermutedValue(uint32 randomization_seed) const override;
+ uint16_t GetPermutedValue(uint32_t randomization_seed) const override;
// Reads the cache from local state.
void ReadFromLocalState() const;
@@ -47,11 +50,11 @@ class CachingPermutedEntropyProvider : public PermutedEntropyProvider {
void UpdateLocalState() const;
// Adds |randomization_seed| -> |value| to the cache.
- void AddToCache(uint32 randomization_seed, uint16 value) const;
+ void AddToCache(uint32_t randomization_seed, uint16_t value) const;
// Finds the value corresponding to |randomization_seed|, setting |value| and
// returning true if found.
- bool FindValue(uint32 randomization_seed, uint16* value) const;
+ bool FindValue(uint32_t randomization_seed, uint16_t* value) const;
base::ThreadChecker thread_checker_;
PrefService* local_state_;
« no previous file with comments | « components/variations/android/variations_seed_bridge.cc ('k') | components/variations/caching_permuted_entropy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698