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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Creates a single-file PrefStore as was used in M34 and earlier. Used only | 101 // Creates a single-file PrefStore as was used in M34 and earlier. Used only |
102 // for testing migration. | 102 // for testing migration. |
103 PersistentPrefStore* CreateDeprecatedCombinedProfilePrefStore( | 103 PersistentPrefStore* CreateDeprecatedCombinedProfilePrefStore( |
104 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); | 104 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); |
105 | 105 |
106 private: | 106 private: |
107 // Returns a PrefHashStoreImpl for the managed profile. Should only be called | 107 // Returns a PrefHashStoreImpl for the managed profile. Should only be called |
108 // if |kPlatformSupportsPreferenceTracking|. | 108 // if |kPlatformSupportsPreferenceTracking|. |
109 scoped_ptr<PrefHashStoreImpl> GetPrefHashStoreImpl(); | 109 scoped_ptr<PrefHashStoreImpl> GetPrefHashStoreImpl(); |
110 | 110 |
111 // Returns a PrefHashStore that is a copy of the current state of the real | |
112 // hash store. | |
113 scoped_ptr<PrefHashStore> CopyPrefHashStore(); | |
114 | |
115 const base::FilePath profile_path_; | 111 const base::FilePath profile_path_; |
116 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> | 112 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> |
117 tracking_configuration_; | 113 tracking_configuration_; |
118 const size_t reporting_ids_count_; | 114 const size_t reporting_ids_count_; |
119 const std::string seed_; | 115 const std::string seed_; |
120 const std::string device_id_; | 116 const std::string device_id_; |
121 PrefService* local_state_; | 117 PrefService* local_state_; |
122 | 118 |
123 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); | 119 DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); |
124 }; | 120 }; |
125 | 121 |
126 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ | 122 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ |
OLD | NEW |