| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 SERVICES_PREFERENCES_PERSISTENT_PREF_STORE_FACTORY_H_ | 5 #ifndef SERVICES_PREFERENCES_PERSISTENT_PREF_STORE_FACTORY_H_ |
| 6 #define SERVICES_PREFERENCES_PERSISTENT_PREF_STORE_FACTORY_H_ | 6 #define SERVICES_PREFERENCES_PERSISTENT_PREF_STORE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "services/preferences/public/interfaces/preferences.mojom.h" | 10 #include "services/preferences/public/interfaces/preferences.mojom.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class SequencedWorkerPool; | 13 class SequencedWorkerPool; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace prefs { | 16 namespace prefs { |
| 17 class PersistentPrefStoreImpl; | 17 class PersistentPrefStoreImpl; |
| 18 | 18 |
| 19 // Create a new mojom::PersistentPrefStore impl that runs on |worker_pool| | 19 // Create a new mojom::PersistentPrefStore impl that runs on |worker_pool| |
| 20 // configured by |configuration|. | 20 // configured by |configuration|. |
| 21 std::unique_ptr<PersistentPrefStoreImpl> CreatePersistentPrefStore( | 21 std::unique_ptr<PersistentPrefStoreImpl> CreatePersistentPrefStore( |
| 22 mojom::PersistentPrefStoreConfigurationPtr configuration, | 22 mojom::PersistentPrefStoreConfigurationPtr configuration, |
| 23 base::SequencedWorkerPool* worker_pool); | 23 base::SequencedWorkerPool* worker_pool, |
| 24 base::Closure on_initialized); |
| 24 | 25 |
| 25 } // namespace prefs | 26 } // namespace prefs |
| 26 | 27 |
| 27 #endif // SERVICES_PREFERENCES_PERSISTENT_PREF_STORE_FACTORY_H_ | 28 #endif // SERVICES_PREFERENCES_PERSISTENT_PREF_STORE_FACTORY_H_ |
| OLD | NEW |