Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/browser/prefs/pref_service_syncable_factory.h

Issue 1343743002: Remove dependency of PrefSyncableServiceFactory on //chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_ 6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
7 7
8 #include "base/prefs/pref_service_factory.h" 8 #include "base/prefs/pref_service_factory.h"
9 9
10 class PrefServiceSyncable; 10 class PrefServiceSyncable;
11 11
12 namespace base { 12 namespace base {
13 class CommandLine; 13 class CommandLine;
14 } 14 }
15 15
16 namespace policy { 16 namespace policy {
17 class BrowserPolicyConnector;
17 class PolicyService; 18 class PolicyService;
18 } 19 }
19 20
20 namespace user_prefs { 21 namespace user_prefs {
21 class PrefRegistrySyncable; 22 class PrefRegistrySyncable;
22 } 23 }
23 24
24 // A PrefServiceFactory that also knows how to build a 25 // A PrefServiceFactory that also knows how to build a
25 // PrefServiceSyncable, and may know about Chrome concepts such as 26 // PrefServiceSyncable, and may know about Chrome concepts such as
26 // PolicyService. 27 // PolicyService.
27 class PrefServiceSyncableFactory : public base::PrefServiceFactory { 28 class PrefServiceSyncableFactory : public base::PrefServiceFactory {
28 public: 29 public:
29 PrefServiceSyncableFactory(); 30 PrefServiceSyncableFactory();
30 ~PrefServiceSyncableFactory() override; 31 ~PrefServiceSyncableFactory() override;
31 32
32 #if defined(ENABLE_CONFIGURATION_POLICY) 33 #if defined(ENABLE_CONFIGURATION_POLICY)
33 // Set up policy pref stores using the given policy service. 34 // Set up policy pref stores using the given policy service and connector.
34 void SetManagedPolicies(policy::PolicyService* service); 35 void SetManagedPolicies(policy::PolicyService* service,
35 void SetRecommendedPolicies(policy::PolicyService* service); 36 policy::BrowserPolicyConnector* connector);
37 void SetRecommendedPolicies(policy::PolicyService* service,
38 policy::BrowserPolicyConnector* connector);
36 #endif 39 #endif
37 40
38 // Specifies to use an actual command-line backed command-line pref store.
39 void SetCommandLine(base::CommandLine* command_line);
40 41
41 scoped_ptr<PrefServiceSyncable> CreateSyncable( 42 scoped_ptr<PrefServiceSyncable> CreateSyncable(
42 user_prefs::PrefRegistrySyncable* registry); 43 user_prefs::PrefRegistrySyncable* registry);
43 44
44 private: 45 private:
45 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory); 46 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_ 49 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/command_line_pref_store_proxy_unittest.cc ('k') | chrome/browser/prefs/pref_service_syncable_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698