OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ |
6 #define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ | 6 #define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "components/prefs/pref_service.h" | 10 #include "components/prefs/pref_service.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 class Connector; | 13 class Connector; |
14 } | 14 } |
15 | 15 |
16 class PrefRegistry; | 16 class PrefRegistry; |
17 | 17 |
18 namespace filesystem { | 18 namespace filesystem { |
19 | 19 |
20 // This factory method creates a PrefService for the local process based on the | 20 // This factory method creates a PrefService for the local process based on the |
21 // preference registry passed in. This PrefService will synchronize with a JSON | 21 // preference registry passed in. This PrefService will synchronize with a JSON |
22 // file in the mojo:filesystem. | 22 // file in the mojo:filesystem. |
23 std::unique_ptr<PrefService> CreatePrefService(shell::Connector* connector, | 23 std::unique_ptr<PrefService> CreatePrefService( |
24 PrefRegistry* registry); | 24 service_manager::Connector* connector, |
| 25 PrefRegistry* registry); |
25 | 26 |
26 } // namespace filesystem | 27 } // namespace filesystem |
27 | 28 |
28 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ | 29 #endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_ |
OLD | NEW |