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

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

Issue 10689097: Enforce the 'requirements' field in manifests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
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_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 <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 namespace extensions { 79 namespace extensions {
80 class AppSyncData; 80 class AppSyncData;
81 class ComponentLoader; 81 class ComponentLoader;
82 class ContentSettingsStore; 82 class ContentSettingsStore;
83 class Extension; 83 class Extension;
84 class ExtensionCookiesEventRouter; 84 class ExtensionCookiesEventRouter;
85 class ExtensionSyncData; 85 class ExtensionSyncData;
86 class ExtensionUpdater; 86 class ExtensionUpdater;
87 class RequirementsProvider;
87 class SettingsFrontend; 88 class SettingsFrontend;
88 class WebNavigationEventRouter; 89 class WebNavigationEventRouter;
89 } 90 }
90 91
91 // This is an interface class to encapsulate the dependencies that 92 // This is an interface class to encapsulate the dependencies that
92 // various classes have on ExtensionService. This allows easy mocking. 93 // various classes have on ExtensionService. This allows easy mocking.
93 class ExtensionServiceInterface : public syncer::SyncableService { 94 class ExtensionServiceInterface : public syncer::SyncableService {
94 public: 95 public:
95 // A function that returns true if the given extension should be 96 // A function that returns true if the given extension should be
96 // included and false if it should be filtered out. Identical to 97 // included and false if it should be filtered out. Identical to
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 ExtensionWarningSet extension_warnings_; 845 ExtensionWarningSet extension_warnings_;
845 846
846 scoped_ptr<extensions::APIResourceController> api_resource_controller_; 847 scoped_ptr<extensions::APIResourceController> api_resource_controller_;
847 848
848 extensions::ProcessMap process_map_; 849 extensions::ProcessMap process_map_;
849 850
850 AppShortcutManager app_shortcut_manager_; 851 AppShortcutManager app_shortcut_manager_;
851 852
852 scoped_ptr<ExtensionGlobalError> extension_global_error_; 853 scoped_ptr<ExtensionGlobalError> extension_global_error_;
853 854
855 // The provider that checks if the extension is supported.
856 scoped_ptr<extensions::RequirementsProvider> requirements_provider_;
857
854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
855 InstallAppsWithUnlimtedStorage); 859 InstallAppsWithUnlimtedStorage);
856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 860 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
857 InstallAppsAndCheckStorageProtection); 861 InstallAppsAndCheckStorageProtection);
858 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 862 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
859 }; 863 };
860 864
861 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 865 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698