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_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ | 5 #ifndef COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ |
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ | 6 #define COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/prefs/tracked/pref_hash_store.h" | 13 #include "components/user_prefs/tracked/pref_hash_store.h" |
14 | 14 |
15 class HashStoreContents; | 15 class HashStoreContents; |
16 class InterceptablePrefFilter; | 16 class InterceptablePrefFilter; |
17 class PrefHashStore; | 17 class PrefHashStore; |
18 | 18 |
19 // Sets up InterceptablePrefFilter::FilterOnLoadInterceptors on | 19 // Sets up InterceptablePrefFilter::FilterOnLoadInterceptors on |
20 // |unprotected_pref_filter| and |protected_pref_filter| which prevents each | 20 // |unprotected_pref_filter| and |protected_pref_filter| which prevents each |
21 // filter from running their on load operations until the interceptors decide to | 21 // filter from running their on load operations until the interceptors decide to |
22 // hand the prefs back to them (after migration is complete). | | 22 // hand the prefs back to them (after migration is complete). | |
23 // (un)protected_store_cleaner| and | 23 // (un)protected_store_cleaner| and |
(...skipping 14 matching lines...) Expand all Loading... |
38 const base::Callback<void(const base::Closure&)>& | 38 const base::Callback<void(const base::Closure&)>& |
39 register_on_successful_unprotected_store_write_callback, | 39 register_on_successful_unprotected_store_write_callback, |
40 const base::Callback<void(const base::Closure&)>& | 40 const base::Callback<void(const base::Closure&)>& |
41 register_on_successful_protected_store_write_callback, | 41 register_on_successful_protected_store_write_callback, |
42 scoped_ptr<PrefHashStore> unprotected_pref_hash_store, | 42 scoped_ptr<PrefHashStore> unprotected_pref_hash_store, |
43 scoped_ptr<PrefHashStore> protected_pref_hash_store, | 43 scoped_ptr<PrefHashStore> protected_pref_hash_store, |
44 scoped_ptr<HashStoreContents> legacy_pref_hash_store, | 44 scoped_ptr<HashStoreContents> legacy_pref_hash_store, |
45 InterceptablePrefFilter* unprotected_pref_filter, | 45 InterceptablePrefFilter* unprotected_pref_filter, |
46 InterceptablePrefFilter* protected_pref_filter); | 46 InterceptablePrefFilter* protected_pref_filter); |
47 | 47 |
48 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ | 48 #endif // COMPONENTS_USER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ |
OLD | NEW |