OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ | |
6 #define CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ | |
7 | |
8 #include <set> | |
9 #include <string> | |
10 | |
11 class JsonPrefStore; | |
12 | |
13 // Sets up JsonPrefStore::OnFileReadInterceptors on |unprotected_pref_store| | |
14 // and |protected_pref_store| such that they are only handed back to their | |
15 // respective JsonPrefStores on read after we've made sure that the most recent | |
16 // pref value for |unprotected_pref_names| are in the |unprotected_pref_store| | |
17 // and conversely for protected preferences. | |
18 // NOTE: In the event of a synchronous read request (i.e., | |
19 // JsonPrefStore::ReadPrefs()): the JsonPrefStore::OnFileReadInterceptors will | |
20 // make the first read asynchronous, but the double read will complete | |
21 // synchronously on the second ReadPrefs(). | |
22 void SetupTrackedPrefererencesMigration( | |
Bernhard Bauer
2014/04/29 15:13:04
There's one "re" too much in there :)
gab
2014/04/29 15:46:44
Haha, good catch, introducing some rimes in the tr
| |
23 const std::set<std::string>& unprotected_pref_names, | |
24 const std::set<std::string>& protected_pref_names, | |
25 JsonPrefStore* unprotected_pref_store, | |
26 JsonPrefStore* protected_pref_store); | |
27 | |
28 #endif // CHROME_BROWSER_PREFS_TRACKED_TRACKED_PREFERENCES_MIGRATION_H_ | |
OLD | NEW |