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_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_ | 5 #ifndef COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ |
6 #define COMPONENTS_SYNCABLE_PREFS_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 | 12 |
13 namespace base { | 13 namespace base { |
14 class CommandLine; | 14 class CommandLine; |
15 } | 15 } |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 class BrowserPolicyConnector; | 18 class BrowserPolicyConnector; |
19 class PolicyService; | 19 class PolicyService; |
20 } | 20 } |
21 | 21 |
22 namespace user_prefs { | 22 namespace user_prefs { |
23 class PrefRegistrySyncable; | 23 class PrefRegistrySyncable; |
24 } | 24 } |
25 | 25 |
26 namespace syncable_prefs { | 26 namespace sync_preferences { |
27 | 27 |
28 class PrefModelAssociatorClient; | 28 class PrefModelAssociatorClient; |
29 class PrefServiceSyncable; | 29 class PrefServiceSyncable; |
30 | 30 |
31 // A PrefServiceFactory that also knows how to build a | 31 // A PrefServiceFactory that also knows how to build a |
32 // PrefServiceSyncable, and may know about Chrome concepts such as | 32 // PrefServiceSyncable, and may know about Chrome concepts such as |
33 // PolicyService. | 33 // PolicyService. |
34 class PrefServiceSyncableFactory : public PrefServiceFactory { | 34 class PrefServiceSyncableFactory : public PrefServiceFactory { |
35 public: | 35 public: |
36 PrefServiceSyncableFactory(); | 36 PrefServiceSyncableFactory(); |
(...skipping 11 matching lines...) Expand all Loading... |
48 | 48 |
49 std::unique_ptr<PrefServiceSyncable> CreateSyncable( | 49 std::unique_ptr<PrefServiceSyncable> CreateSyncable( |
50 user_prefs::PrefRegistrySyncable* registry); | 50 user_prefs::PrefRegistrySyncable* registry); |
51 | 51 |
52 private: | 52 private: |
53 PrefModelAssociatorClient* pref_model_associator_client_; | 53 PrefModelAssociatorClient* pref_model_associator_client_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory); | 55 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace syncable_prefs | 58 } // namespace sync_preferences |
59 | 59 |
60 #endif // COMPONENTS_SYNCABLE_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_ | 60 #endif // COMPONENTS_SYNC_PREFERENCES_PREF_SERVICE_SYNCABLE_FACTORY_H_ |
OLD | NEW |