Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / extensions / shell / browser / shell_prefs.h
blob1e94c0e6bad8ec80e1e1effc441f3f0a90dc44e0
1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
8 #include "base/memory/scoped_ptr.h"
10 class PrefService;
12 namespace base {
13 class FilePath;
16 namespace content {
17 class BrowserContext;
20 namespace extensions {
22 // Support for preference initialization and management.
23 namespace shell_prefs {
25 // Creates a pref service for device-wide preferences stored in |data_dir|.
26 scoped_ptr<PrefService> CreateLocalState(const base::FilePath& data_dir);
28 // Creates a pref service that loads user preferences for |browser_context|.
29 scoped_ptr<PrefService> CreateUserPrefService(
30 content::BrowserContext* browser_context);
32 } // namespace shell_prefs
34 } // namespace extensions
36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_