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

Side by Side Diff: chrome/browser/prefs/profile_pref_store_manager.h

Issue 257003007: Introduce a new framework for back-and-forth tracked/protected preferences migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment nit Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_hash_filter_unittest.cc ('k') | chrome/browser/prefs/profile_pref_store_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698