shell_prefs.h 930 B

123456789101112131415161718192021222324252627282930313233343536
  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.
  4. #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
  5. #define EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_
  6. #include <memory>
  7. class PrefService;
  8. namespace base {
  9. class FilePath;
  10. }
  11. namespace content {
  12. class BrowserContext;
  13. }
  14. namespace extensions {
  15. // Support for preference initialization and management.
  16. namespace shell_prefs {
  17. // Creates a pref service for device-wide preferences stored in |data_dir|.
  18. std::unique_ptr<PrefService> CreateLocalState(const base::FilePath& data_dir);
  19. // Creates a pref service that loads user preferences for |browser_context|.
  20. std::unique_ptr<PrefService> CreateUserPrefService(
  21. content::BrowserContext* browser_context);
  22. } // namespace shell_prefs
  23. } // namespace extensions
  24. #endif // EXTENSIONS_SHELL_BROWSER_SHELL_PREFS_H_