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

Side by Side Diff: services/preferences/tracked/pref_hash_store_impl.h

Issue 2782803002: Move tracked prefs into services/preferences/tracked. (Closed)
Patch Set: rebase Created 3 years, 8 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
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 COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ 5 #ifndef SERVICES_PREFERENCES_TRACKED_PREF_HASH_STORE_IMPL_H_
6 #define COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ 6 #define SERVICES_PREFERENCES_TRACKED_PREF_HASH_STORE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/user_prefs/tracked/pref_hash_calculator.h" 10 #include "services/preferences/tracked/pref_hash_calculator.h"
11 #include "components/user_prefs/tracked/pref_hash_store.h" 11 #include "services/preferences/tracked/pref_hash_store.h"
12 12
13 // Implements PrefHashStoreImpl by storing preference hashes in a 13 // Implements PrefHashStoreImpl by storing preference hashes in a
14 // HashStoreContents. 14 // HashStoreContents.
15 class PrefHashStoreImpl : public PrefHashStore { 15 class PrefHashStoreImpl : public PrefHashStore {
16 public: 16 public:
17 enum StoreVersion { 17 enum StoreVersion {
18 // No hashes have been stored in this PrefHashStore yet. 18 // No hashes have been stored in this PrefHashStore yet.
19 VERSION_UNINITIALIZED = 0, 19 VERSION_UNINITIALIZED = 0,
20 // The hashes in this PrefHashStore were stored before the introduction 20 // The hashes in this PrefHashStore were stored before the introduction
21 // of a version number and should be re-initialized. 21 // of a version number and should be re-initialized.
(...skipping 29 matching lines...) Expand all
51 51
52 private: 52 private:
53 class PrefHashStoreTransactionImpl; 53 class PrefHashStoreTransactionImpl;
54 54
55 const PrefHashCalculator pref_hash_calculator_; 55 const PrefHashCalculator pref_hash_calculator_;
56 bool use_super_mac_; 56 bool use_super_mac_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PrefHashStoreImpl); 58 DISALLOW_COPY_AND_ASSIGN(PrefHashStoreImpl);
59 }; 59 };
60 60
61 #endif // COMPONENTS_USER_PREFS_TRACKED_PREF_HASH_STORE_IMPL_H_ 61 #endif // SERVICES_PREFERENCES_TRACKED_PREF_HASH_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « services/preferences/tracked/pref_hash_store.h ('k') | services/preferences/tracked/pref_hash_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698