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

Side by Side Diff: extensions/browser/extension_system.h

Issue 1127133006: Extract InstallVerifier from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/mock_extension_system.h » ('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 2014 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 namespace extensions { 30 namespace extensions {
31 31
32 class ContentVerifier; 32 class ContentVerifier;
33 class DeclarativeUserScriptManager; 33 class DeclarativeUserScriptManager;
34 class EventRouter; 34 class EventRouter;
35 class Extension; 35 class Extension;
36 class ExtensionSet; 36 class ExtensionSet;
37 class InfoMap; 37 class InfoMap;
38 class InstallVerifier;
39 class LazyBackgroundTaskQueue; 38 class LazyBackgroundTaskQueue;
40 class ManagementPolicy; 39 class ManagementPolicy;
41 class OneShotEvent; 40 class OneShotEvent;
42 class QuotaService; 41 class QuotaService;
43 class RuntimeData; 42 class RuntimeData;
44 class SharedUserScriptMaster; 43 class SharedUserScriptMaster;
45 class StateStore; 44 class StateStore;
46 45
47 // ExtensionSystem manages the lifetime of many of the services used by the 46 // ExtensionSystem manages the lifetime of many of the services used by the
48 // extensions and apps system, and it handles startup and shutdown as needed. 47 // extensions and apps system, and it handles startup and shutdown as needed.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 86
88 // Returns the IO-thread-accessible extension data. 87 // Returns the IO-thread-accessible extension data.
89 virtual InfoMap* info_map() = 0; 88 virtual InfoMap* info_map() = 0;
90 89
91 // The LazyBackgroundTaskQueue is created at startup. 90 // The LazyBackgroundTaskQueue is created at startup.
92 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; 91 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0;
93 92
94 // The EventRouter is created at startup. 93 // The EventRouter is created at startup.
95 virtual EventRouter* event_router() = 0; 94 virtual EventRouter* event_router() = 0;
96 95
97 // The InstallVerifier is created at startup.
98 virtual InstallVerifier* install_verifier() = 0;
99
100 // Returns the QuotaService that limits calls to certain extension functions. 96 // Returns the QuotaService that limits calls to certain extension functions.
101 // Lives on the UI thread. Created at startup. 97 // Lives on the UI thread. Created at startup.
102 virtual QuotaService* quota_service() = 0; 98 virtual QuotaService* quota_service() = 0;
103 99
104 // Called by the ExtensionService that lives in this system. Gives the 100 // Called by the ExtensionService that lives in this system. Gives the
105 // info map a chance to react to the load event before the EXTENSION_LOADED 101 // info map a chance to react to the load event before the EXTENSION_LOADED
106 // notification has fired. The purpose for handling this event first is to 102 // notification has fired. The purpose for handling this event first is to
107 // avoid race conditions by making sure URLRequestContexts learn about new 103 // avoid race conditions by making sure URLRequestContexts learn about new
108 // extensions before anything else needs them to know. 104 // extensions before anything else needs them to know.
109 virtual void RegisterExtensionWithRequestContexts( 105 virtual void RegisterExtensionWithRequestContexts(
(...skipping 15 matching lines...) Expand all
125 // Get a set of extensions that depend on the given extension. 121 // Get a set of extensions that depend on the given extension.
126 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser 122 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser
127 // so it can be retrieved from ExtensionSystem directly. 123 // so it can be retrieved from ExtensionSystem directly.
128 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( 124 virtual scoped_ptr<ExtensionSet> GetDependentExtensions(
129 const Extension* extension) = 0; 125 const Extension* extension) = 0;
130 }; 126 };
131 127
132 } // namespace extensions 128 } // namespace extensions
133 129
134 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 130 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | extensions/browser/mock_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698