Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 // the preferences/hash store are concurrently loaded/manipulated by another | 84 // the preferences/hash store are concurrently loaded/manipulated by another |
| 85 // task. | 85 // task. |
| 86 void UpdateProfileHashStoreIfRequired( | 86 void UpdateProfileHashStoreIfRequired( |
| 87 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); | 87 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); |
| 88 | 88 |
| 89 // Initializes the preferences for the managed profile with the preference | 89 // Initializes the preferences for the managed profile with the preference |
| 90 // values in |master_prefs|. Returns true on success. | 90 // values in |master_prefs|. Returns true on success. |
| 91 bool InitializePrefsFromMasterPrefs( | 91 bool InitializePrefsFromMasterPrefs( |
| 92 const base::DictionaryValue& master_prefs); | 92 const base::DictionaryValue& master_prefs); |
| 93 | 93 |
| 94 // Creates a single-file PrefStore as was used in M34 and earlier. Used for | |
|
robertshield
2014/03/25 03:05:12
nit: Used only for..
erikwright (departed)
2014/03/25 20:28:26
Done.
| |
| 95 // testing migration. | |
| 96 PersistentPrefStore* CreateDeprecatedCombinedProfilePrefStore( | |
| 97 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); | |
| 98 | |
| 94 private: | 99 private: |
| 95 class InitializeHashStoreObserver; | 100 class InitializeHashStoreObserver; |
| 96 | 101 |
| 97 // Returns a PrefHashStoreImpl for the managed profile. Should only be called | 102 // Returns a PrefHashStoreImpl for the managed profile. Should only be called |
| 98 // if |kPlatformSupportsPreferenceTracking|. | 103 // if |kPlatformSupportsPreferenceTracking|. |
| 99 scoped_ptr<PrefHashStoreImpl> GetPrefHashStoreImpl(); | 104 scoped_ptr<PrefHashStoreImpl> GetPrefHashStoreImpl(); |
| 100 | 105 |
| 106 // Returns a PrefHashStore that is a copy of the current state of the real | |
| 107 // hash store. | |
| 108 scoped_ptr<PrefHashStore> CopyPrefHashStore(); | |
| 109 | |
| 101 const base::FilePath profile_path_; | 110 const base::FilePath profile_path_; |
| 102 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> | 111 const std::vector<PrefHashFilter::TrackedPreferenceMetadata> |
| 103 tracking_configuration_; | 112 tracking_configuration_; |
| 104 const size_t reporting_ids_count_; | 113 const size_t reporting_ids_count_; |
|
robertshield
2014/03/25 03:05:12
Please add a comment describing that this is used
erikwright (departed)
2014/03/25 20:28:26
Added to the constructor in the prior CL:
https:/
| |
| 105 const std::string seed_; | 114 const std::string seed_; |
| 106 const std::string device_id_; | 115 const std::string device_id_; |
| 107 PrefService* local_state_; | 116 PrefService* local_state_; |
| 108 }; | 117 }; |
| 109 | 118 |
| 110 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ | 119 #endif // CHROME_BROWSER_PREFS_PROFILE_PREF_STORE_MANAGER_H_ |
| OLD | NEW |