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

Side by Side Diff: ios/chrome/browser/prefs/ios_chrome_pref_service_factory.h

Issue 1456783004: Remove configuration policy on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up gyp and DEPS Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ 5 #ifndef IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_
6 #define IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ 6 #define IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 class PrefRegistry; 11 class PrefRegistry;
12 class PrefService; 12 class PrefService;
13 class PrefStore; 13 class PrefStore;
14 class TrackedPreferenceValidationDelegate; 14 class TrackedPreferenceValidationDelegate;
15 15
16 namespace base { 16 namespace base {
17 class FilePath; 17 class FilePath;
18 class SequencedTaskRunner; 18 class SequencedTaskRunner;
19 } 19 }
20 20
21 namespace ios { 21 namespace ios {
22 class ChromeBrowserState; 22 class ChromeBrowserState;
23 } 23 }
24 24
25 namespace policy {
26 class PolicyService;
27 }
28
29 namespace syncable_prefs { 25 namespace syncable_prefs {
30 class PrefServiceSyncable; 26 class PrefServiceSyncable;
31 } 27 }
32 28
33 namespace user_prefs { 29 namespace user_prefs {
34 class PrefRegistrySyncable; 30 class PrefRegistrySyncable;
35 } 31 }
36 32
37 // Factory methods that create and initialize a new instance of a PrefService 33 // Factory methods that create and initialize a new instance of a PrefService
38 // for Chrome on iOS with the applicable PrefStores. The |pref_filename| points 34 // for Chrome on iOS with the applicable PrefStores. The |pref_filename| points
39 // to the user preference file. This is the usual way to create a new 35 // to the user preference file. This is the usual way to create a new
40 // PrefService. |policy_service| is used as the source for mandatory or 36 // PrefService. |pref_registry| keeps the list of registered prefs and their
41 // recommended policies. |pref_registry| keeps the list of registered prefs and 37 // default valuers. If |async| is true, asynchronous version is used.
42 // their default valuers. If |async| is true, asynchronous version is used.
43 scoped_ptr<PrefService> CreateLocalState( 38 scoped_ptr<PrefService> CreateLocalState(
44 const base::FilePath& pref_filename, 39 const base::FilePath& pref_filename,
45 base::SequencedTaskRunner* pref_io_task_runner, 40 base::SequencedTaskRunner* pref_io_task_runner,
46 policy::PolicyService* policy_service,
47 const scoped_refptr<PrefRegistry>& pref_registry, 41 const scoped_refptr<PrefRegistry>& pref_registry,
48 bool async); 42 bool async);
49 43
50 scoped_ptr<syncable_prefs::PrefServiceSyncable> CreateBrowserStatePrefs( 44 scoped_ptr<syncable_prefs::PrefServiceSyncable> CreateBrowserStatePrefs(
51 const base::FilePath& browser_state_path, 45 const base::FilePath& browser_state_path,
52 base::SequencedTaskRunner* pref_io_task_runner, 46 base::SequencedTaskRunner* pref_io_task_runner,
53 TrackedPreferenceValidationDelegate* validation_delegate, 47 TrackedPreferenceValidationDelegate* validation_delegate,
54 policy::PolicyService* policy_service,
55 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 48 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
56 bool async); 49 bool async);
57 50
58 // Creates an incognito copy of |pref_service| that shares most prefs but uses 51 // Creates an incognito copy of |pref_service| that shares most prefs but uses
59 // a fresh non-persistent overlay for the user pref store. 52 // a fresh non-persistent overlay for the user pref store.
60 scoped_ptr<syncable_prefs::PrefServiceSyncable> 53 scoped_ptr<syncable_prefs::PrefServiceSyncable>
61 CreateIncognitoBrowserStatePrefs( 54 CreateIncognitoBrowserStatePrefs(
62 syncable_prefs::PrefServiceSyncable* main_pref_store); 55 syncable_prefs::PrefServiceSyncable* main_pref_store);
63 56
64 #endif // IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ 57 #endif // IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/prefs/browser_prefs.mm ('k') | ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698