OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ |
6 #define CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ | 6 #define CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); | 92 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); |
93 | 93 |
94 private: | 94 private: |
95 // Returns a PrefHashStore for the managed profile. Should only be called | 95 // Returns a PrefHashStore for the managed profile. Should only be called |
96 // if |kPlatformSupportsPreferenceTracking|. |use_super_mac| determines | 96 // if |kPlatformSupportsPreferenceTracking|. |use_super_mac| determines |
97 // whether the returned object will calculate, store, and validate super MACs | 97 // whether the returned object will calculate, store, and validate super MACs |
98 // (and, by extension, accept non-null newly protected preferences as | 98 // (and, by extension, accept non-null newly protected preferences as |
99 // TrustedInitialized). | 99 // TrustedInitialized). |
100 std::unique_ptr<PrefHashStore> GetPrefHashStore(bool use_super_mac); | 100 std::unique_ptr<PrefHashStore> GetPrefHashStore(bool use_super_mac); |
101 | 101 |
102 // On Windows, returns a PrefHashStore for the managed profile for use with | |
103 // |RegistryHashStoreContentsWin|. Returns nullptr otherwise. | |
104 std::unique_ptr<PrefHashStore> MaybeGetRegistryPrefHashStore(); | |
gab
2016/08/03 18:19:34
// Returns a PrefHashStore that can be used for ex
proberge
2016/08/04 00:13:45
Done.
| |
105 | |
102 const base::FilePath profile_path_; | 106 const base::FilePath profile_path_; |
103 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> | 107 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> |
104 tracking_configuration_; | 108 tracking_configuration_; |
105 const size_t reporting_ids_count_; | 109 const size_t reporting_ids_count_; |
106 const std::string seed_; | 110 const std::string seed_; |
107 const std::string device_id_; | 111 const std::string device_id_; |
108 PrefService* local_state_; | 112 PrefService* local_state_; |
109 | 113 |
110 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); | 114 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); |
111 }; | 115 }; |
112 | 116 |
113 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ | 117 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ |
OLD | NEW |