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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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;
11
12 namespace base {
10 class CommandLine; 13 class CommandLine;
11 class PrefServiceSyncable; 14 }
12 15
13 namespace policy { 16 namespace policy {
14 class PolicyService; 17 class PolicyService;
15 } 18 }
16 19
17 namespace user_prefs { 20 namespace user_prefs {
18 class PrefRegistrySyncable; 21 class PrefRegistrySyncable;
19 } 22 }
20 23
21 // A PrefServiceFactory that also knows how to build a 24 // A PrefServiceFactory that also knows how to build a
22 // PrefServiceSyncable, and may know about Chrome concepts such as 25 // PrefServiceSyncable, and may know about Chrome concepts such as
23 // PolicyService. 26 // PolicyService.
24 class PrefServiceSyncableFactory : public base::PrefServiceFactory { 27 class PrefServiceSyncableFactory : public base::PrefServiceFactory {
25 public: 28 public:
26 PrefServiceSyncableFactory(); 29 PrefServiceSyncableFactory();
27 virtual ~PrefServiceSyncableFactory(); 30 virtual ~PrefServiceSyncableFactory();
28 31
29 #if defined(ENABLE_CONFIGURATION_POLICY) 32 #if defined(ENABLE_CONFIGURATION_POLICY)
30 // Set up policy pref stores using the given policy service. 33 // Set up policy pref stores using the given policy service.
31 void SetManagedPolicies(policy::PolicyService* service); 34 void SetManagedPolicies(policy::PolicyService* service);
32 void SetRecommendedPolicies(policy::PolicyService* service); 35 void SetRecommendedPolicies(policy::PolicyService* service);
33 #endif 36 #endif
34 37
35 // Specifies to use an actual command-line backed command-line pref store. 38 // Specifies to use an actual command-line backed command-line pref store.
36 void SetCommandLine(CommandLine* command_line); 39 void SetCommandLine(base::CommandLine* command_line);
37 40
38 scoped_ptr<PrefServiceSyncable> CreateSyncable( 41 scoped_ptr<PrefServiceSyncable> CreateSyncable(
39 user_prefs::PrefRegistrySyncable* registry); 42 user_prefs::PrefRegistrySyncable* registry);
40 43
41 private: 44 private:
42 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory); 45 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory);
43 }; 46 };
44 47
45 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_ 48 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/incognito_mode_prefs.h ('k') | chrome/browser/prerender/prerender_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698