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

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

Issue 8497065: Extension Settings API: make it so that when leveldb storage areas fail to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/time.h" 21 #include "base/time.h"
22 #include "base/tuple.h" 22 #include "base/tuple.h"
23 #include "chrome/browser/extensions/apps_promo.h" 23 #include "chrome/browser/extensions/apps_promo.h"
24 #include "chrome/browser/extensions/extension_icon_manager.h" 24 #include "chrome/browser/extensions/extension_icon_manager.h"
25 #include "chrome/browser/extensions/extension_menu_manager.h" 25 #include "chrome/browser/extensions/extension_menu_manager.h"
26 #include "chrome/browser/extensions/extension_permissions_api.h" 26 #include "chrome/browser/extensions/extension_permissions_api.h"
27 #include "chrome/browser/extensions/extension_prefs.h" 27 #include "chrome/browser/extensions/extension_prefs.h"
28 #include "chrome/browser/extensions/extension_process_manager.h" 28 #include "chrome/browser/extensions/extension_process_manager.h"
29 #include "chrome/browser/extensions/settings/settings_frontend.h"
30 #include "chrome/browser/extensions/extension_sync_data.h" 29 #include "chrome/browser/extensions/extension_sync_data.h"
31 #include "chrome/browser/extensions/extension_toolbar_model.h" 30 #include "chrome/browser/extensions/extension_toolbar_model.h"
32 #include "chrome/browser/extensions/extension_warning_set.h" 31 #include "chrome/browser/extensions/extension_warning_set.h"
33 #include "chrome/browser/extensions/extensions_quota_service.h" 32 #include "chrome/browser/extensions/extensions_quota_service.h"
34 #include "chrome/browser/extensions/external_extension_provider_interface.h" 33 #include "chrome/browser/extensions/external_extension_provider_interface.h"
35 #include "chrome/browser/extensions/pending_extension_manager.h" 34 #include "chrome/browser/extensions/pending_extension_manager.h"
36 #include "chrome/browser/extensions/process_map.h" 35 #include "chrome/browser/extensions/process_map.h"
37 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" 36 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
38 #include "chrome/browser/prefs/pref_change_registrar.h" 37 #include "chrome/browser/prefs/pref_change_registrar.h"
39 #include "chrome/browser/sync/api/sync_change.h" 38 #include "chrome/browser/sync/api/sync_change.h"
(...skipping 27 matching lines...) Expand all
67 class Profile; 66 class Profile;
68 class SyncData; 67 class SyncData;
69 class Version; 68 class Version;
70 69
71 namespace chromeos { 70 namespace chromeos {
72 class ExtensionInputMethodEventRouter; 71 class ExtensionInputMethodEventRouter;
73 } 72 }
74 73
75 namespace extensions { 74 namespace extensions {
76 class ComponentLoader; 75 class ComponentLoader;
76 class SettingsFrontend;
77 } 77 }
78 78
79 // This is an interface class to encapsulate the dependencies that 79 // This is an interface class to encapsulate the dependencies that
80 // various classes have on ExtensionService. This allows easy mocking. 80 // various classes have on ExtensionService. This allows easy mocking.
81 class ExtensionServiceInterface : public SyncableService { 81 class ExtensionServiceInterface : public SyncableService {
82 public: 82 public:
83 // A function that returns true if the given extension should be 83 // A function that returns true if the given extension should be
84 // included and false if it should be filtered out. Identical to 84 // included and false if it should be filtered out. Identical to
85 // PendingExtensionInfo::ShouldAllowInstallPredicate. 85 // PendingExtensionInfo::ShouldAllowInstallPredicate.
86 typedef bool (*ExtensionFilter)(const Extension&); 86 typedef bool (*ExtensionFilter)(const Extension&);
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 NaClModuleInfoList::iterator FindNaClModule(const GURL& url); 655 NaClModuleInfoList::iterator FindNaClModule(const GURL& url);
656 656
657 // The profile this ExtensionService is part of. 657 // The profile this ExtensionService is part of.
658 Profile* profile_; 658 Profile* profile_;
659 659
660 // Preferences for the owning profile (weak reference). 660 // Preferences for the owning profile (weak reference).
661 ExtensionPrefs* extension_prefs_; 661 ExtensionPrefs* extension_prefs_;
662 662
663 // Settings for the owning profile. 663 // Settings for the owning profile.
664 extensions::SettingsFrontend settings_frontend_; 664 scoped_ptr<extensions::SettingsFrontend> settings_frontend_;
665 665
666 // The current list of installed extensions. 666 // The current list of installed extensions.
667 // TODO(aa): This should use chrome/common/extensions/extension_set.h. 667 // TODO(aa): This should use chrome/common/extensions/extension_set.h.
668 ExtensionList extensions_; 668 ExtensionList extensions_;
669 669
670 // The list of installed extensions that have been disabled. 670 // The list of installed extensions that have been disabled.
671 ExtensionList disabled_extensions_; 671 ExtensionList disabled_extensions_;
672 672
673 // The list of installed extensions that have been terminated. 673 // The list of installed extensions that have been terminated.
674 ExtensionList terminated_extensions_; 674 ExtensionList terminated_extensions_;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 extensions::ProcessMap process_map_; 794 extensions::ProcessMap process_map_;
795 795
796 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 796 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
797 InstallAppsWithUnlimtedStorage); 797 InstallAppsWithUnlimtedStorage);
798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
799 InstallAppsAndCheckStorageProtection); 799 InstallAppsAndCheckStorageProtection);
800 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 800 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
801 }; 801 };
802 802
803 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 803 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698