OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ | 5 #ifndef COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ |
6 #define COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ | 6 #define COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/prefs/pref_service_factory.h" | 11 #include "components/prefs/pref_service_factory.h" |
| 12 #include "services/preferences/public/interfaces/preferences.mojom.h" |
12 | 13 |
13 namespace policy { | 14 namespace policy { |
14 class BrowserPolicyConnector; | 15 class BrowserPolicyConnector; |
15 class PolicyService; | 16 class PolicyService; |
16 } | 17 } |
17 | 18 |
18 namespace user_prefs { | 19 namespace user_prefs { |
19 class PrefRegistrySyncable; | 20 class PrefRegistrySyncable; |
20 } | 21 } |
21 | 22 |
(...skipping 14 matching lines...) Expand all Loading... |
36 // These will assert when policy is not used. | 37 // These will assert when policy is not used. |
37 void SetManagedPolicies(policy::PolicyService* service, | 38 void SetManagedPolicies(policy::PolicyService* service, |
38 policy::BrowserPolicyConnector* connector); | 39 policy::BrowserPolicyConnector* connector); |
39 void SetRecommendedPolicies(policy::PolicyService* service, | 40 void SetRecommendedPolicies(policy::PolicyService* service, |
40 policy::BrowserPolicyConnector* connector); | 41 policy::BrowserPolicyConnector* connector); |
41 | 42 |
42 void SetPrefModelAssociatorClient( | 43 void SetPrefModelAssociatorClient( |
43 PrefModelAssociatorClient* pref_model_associator_client); | 44 PrefModelAssociatorClient* pref_model_associator_client); |
44 | 45 |
45 std::unique_ptr<PrefServiceSyncable> CreateSyncable( | 46 std::unique_ptr<PrefServiceSyncable> CreateSyncable( |
46 user_prefs::PrefRegistrySyncable* registry); | 47 user_prefs::PrefRegistrySyncable* registry, |
| 48 prefs::mojom::PersistentPrefStoreConnectorPtr connector = {}); |
47 | 49 |
48 private: | 50 private: |
49 PrefModelAssociatorClient* pref_model_associator_client_; | 51 PrefModelAssociatorClient* pref_model_associator_client_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory); | 53 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace sync_preferences | 56 } // namespace sync_preferences |
55 | 57 |
56 #endif // COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ | 58 #endif // COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ |
OLD | NEW |