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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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
« no previous file with comments | « chrome/browser/extensions/default_apps.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_EXTENSIONS_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h" 16 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h"
17 #include "chrome/browser/extensions/extension_prefs_scope.h" 17 #include "chrome/browser/extensions/extension_prefs_scope.h"
18 #include "chrome/browser/extensions/extension_scoped_prefs.h" 18 #include "chrome/browser/extensions/extension_scoped_prefs.h"
19 #include "chrome/browser/prefs/scoped_user_pref_update.h" 19 #include "chrome/browser/prefs/scoped_user_pref_update.h"
20 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
21 #include "extensions/common/url_pattern_set.h" 21 #include "extensions/common/url_pattern_set.h"
22 #include "sync/api/string_ordinal.h" 22 #include "sync/api/string_ordinal.h"
23 23
24 class ExtensionPrefValueMap; 24 class ExtensionPrefValueMap;
25 class ExtensionSorting; 25 class ExtensionSorting;
26 class PrefService; 26 class PrefService;
27
28 namespace user_prefs {
27 class PrefRegistrySyncable; 29 class PrefRegistrySyncable;
30 }
28 31
29 namespace extensions { 32 namespace extensions {
30 class ExtensionPrefsUninstallExtension; 33 class ExtensionPrefsUninstallExtension;
31 class URLPatternSet; 34 class URLPatternSet;
32 35
33 namespace app_file_handler_util { 36 namespace app_file_handler_util {
34 struct SavedFileEntry; 37 struct SavedFileEntry;
35 } 38 }
36 39
37 // Class for managing global and per-extension preferences. 40 // Class for managing global and per-extension preferences.
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 bool IsFromBookmark(const std::string& extension_id) const; 513 bool IsFromBookmark(const std::string& extension_id) const;
511 514
512 // Returns true if the extension was installed as a default app. 515 // Returns true if the extension was installed as a default app.
513 bool WasInstalledByDefault(const std::string& extension_id) const; 516 bool WasInstalledByDefault(const std::string& extension_id) const;
514 517
515 // Helper method to acquire the installation time of an extension. 518 // Helper method to acquire the installation time of an extension.
516 // Returns base::Time() if the installation time could not be parsed or 519 // Returns base::Time() if the installation time could not be parsed or
517 // found. 520 // found.
518 base::Time GetInstallTime(const std::string& extension_id) const; 521 base::Time GetInstallTime(const std::string& extension_id) const;
519 522
520 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 523 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
521 524
522 ContentSettingsStore* content_settings_store() { 525 ContentSettingsStore* content_settings_store() {
523 return content_settings_store_.get(); 526 return content_settings_store_.get();
524 } 527 }
525 528
526 // The underlying PrefService. 529 // The underlying PrefService.
527 PrefService* pref_service() const { return prefs_; } 530 PrefService* pref_service() const { return prefs_; }
528 531
529 // The underlying ExtensionSorting. 532 // The underlying ExtensionSorting.
530 ExtensionSorting* extension_sorting() const { 533 ExtensionSorting* extension_sorting() const {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 scoped_refptr<ContentSettingsStore> content_settings_store_; 691 scoped_refptr<ContentSettingsStore> content_settings_store_;
689 692
690 scoped_ptr<TimeProvider> time_provider_; 693 scoped_ptr<TimeProvider> time_provider_;
691 694
692 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 695 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
693 }; 696 };
694 697
695 } // namespace extensions 698 } // namespace extensions
696 699
697 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 700 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/default_apps.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698