Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_BUILDER_H_ | |
| 6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_BUILDER_H_ | |
| 7 | |
| 8 #include "chrome/browser/prefs/pref_service_builder.h" | |
| 9 | |
| 10 class CommandLine; | |
| 11 class FilePath; | |
|
Mattias Nissler (ping if slow)
2012/12/21 15:03:21
nit: unused
Jói
2012/12/21 15:29:52
Done.
| |
| 12 class PrefServiceSyncable; | |
| 13 | |
| 14 namespace policy { | |
| 15 class PolicyService; | |
| 16 } | |
| 17 | |
| 18 // A PrefServiceBuilder that also knows how to build a | |
| 19 // PrefServiceSyncable, and may know about Chrome concepts such as | |
| 20 // PolicyService. | |
| 21 class PrefServiceSyncableBuilder : public PrefServiceBuilder { | |
| 22 public: | |
| 23 PrefServiceSyncableBuilder(); | |
| 24 virtual ~PrefServiceSyncableBuilder(); | |
| 25 | |
| 26 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 27 // Set up policy pref stores using the given policy service. | |
| 28 PrefServiceSyncableBuilder& WithManagedPolicies( | |
| 29 policy::PolicyService* service); | |
| 30 PrefServiceSyncableBuilder& WithRecommendedPolicies( | |
| 31 policy::PolicyService* service); | |
| 32 #endif | |
| 33 | |
| 34 // Specifies to use an actual command-line backed command-line pref store. | |
| 35 PrefServiceSyncableBuilder& WithCommandLine(CommandLine* command_line); | |
| 36 | |
| 37 virtual PrefServiceSyncable* CreateSyncable(); | |
| 38 | |
| 39 private: | |
| 40 DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableBuilder); | |
| 41 }; | |
| 42 | |
| 43 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_BUILDER_H_ | |
| OLD | NEW |