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

Side by Side Diff: services/preferences/tracked/pref_hash_store.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_PREFS_TRACKED_PREF_HASH_STORE_H_ 5 #ifndef SERVICES_PREFERENCES_TRACKED_PREF_HASH_STORE_H_
6 #define COMPONENTS_PREFS_TRACKED_PREF_HASH_STORE_H_ 6 #define SERVICES_PREFERENCES_TRACKED_PREF_HASH_STORE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "components/user_prefs/tracked/pref_hash_store_transaction.h" 12 #include "services/preferences/tracked/pref_hash_store_transaction.h"
13 13
14 class HashStoreContents; 14 class HashStoreContents;
15 class PrefHashStoreTransaction; 15 class PrefHashStoreTransaction;
16 16
17 // Holds the configuration and implementation used to calculate and verify 17 // Holds the configuration and implementation used to calculate and verify
18 // preference MACs. 18 // preference MACs.
19 // TODO(gab): Rename this class as it is no longer a store. 19 // TODO(gab): Rename this class as it is no longer a store.
20 class PrefHashStore { 20 class PrefHashStore {
21 public: 21 public:
22 virtual ~PrefHashStore() {} 22 virtual ~PrefHashStore() {}
(...skipping 15 matching lines...) Expand all
38 38
39 // Computes the MAC to be associated with |path| and |split_values| in this 39 // Computes the MAC to be associated with |path| and |split_values| in this
40 // store. PrefHashStoreTransaction typically uses this internally but it's 40 // store. PrefHashStoreTransaction typically uses this internally but it's
41 // also exposed for users that want to compute MACs ahead of time for 41 // also exposed for users that want to compute MACs ahead of time for
42 // asynchronous operations. 42 // asynchronous operations.
43 virtual std::unique_ptr<base::DictionaryValue> ComputeSplitMacs( 43 virtual std::unique_ptr<base::DictionaryValue> ComputeSplitMacs(
44 const std::string& path, 44 const std::string& path,
45 const base::DictionaryValue* split_values) = 0; 45 const base::DictionaryValue* split_values) = 0;
46 }; 46 };
47 47
48 #endif // COMPONENTS_PREFS_TRACKED_PREF_HASH_STORE_H_ 48 #endif // SERVICES_PREFERENCES_TRACKED_PREF_HASH_STORE_H_
OLDNEW
« no previous file with comments | « services/preferences/tracked/pref_hash_filter_unittest.cc ('k') | services/preferences/tracked/pref_hash_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698