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

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

Issue 1139643005: Extract ErrorConsole from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ErrorConsole::Get, update year for copyright lines 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 13 matching lines...) Expand all
24 #endif // defined(OS_CHROMEOS) 24 #endif // defined(OS_CHROMEOS)
25 25
26 namespace content { 26 namespace content {
27 class BrowserContext; 27 class BrowserContext;
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 ErrorConsole;
35 class EventRouter; 34 class EventRouter;
36 class Extension; 35 class Extension;
37 class ExtensionSet; 36 class ExtensionSet;
38 class InfoMap; 37 class InfoMap;
39 class InstallVerifier; 38 class InstallVerifier;
40 class LazyBackgroundTaskQueue; 39 class LazyBackgroundTaskQueue;
41 class ManagementPolicy; 40 class ManagementPolicy;
42 class OneShotEvent; 41 class OneShotEvent;
43 class QuotaService; 42 class QuotaService;
44 class RuntimeData; 43 class RuntimeData;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 87
89 // Returns the IO-thread-accessible extension data. 88 // Returns the IO-thread-accessible extension data.
90 virtual InfoMap* info_map() = 0; 89 virtual InfoMap* info_map() = 0;
91 90
92 // The LazyBackgroundTaskQueue is created at startup. 91 // The LazyBackgroundTaskQueue is created at startup.
93 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; 92 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0;
94 93
95 // The EventRouter is created at startup. 94 // The EventRouter is created at startup.
96 virtual EventRouter* event_router() = 0; 95 virtual EventRouter* event_router() = 0;
97 96
98 // The ErrorConsole is created at startup.
99 virtual ErrorConsole* error_console() = 0;
100
101 // The InstallVerifier is created at startup. 97 // The InstallVerifier is created at startup.
102 virtual InstallVerifier* install_verifier() = 0; 98 virtual InstallVerifier* install_verifier() = 0;
103 99
104 // Returns the QuotaService that limits calls to certain extension functions. 100 // Returns the QuotaService that limits calls to certain extension functions.
105 // Lives on the UI thread. Created at startup. 101 // Lives on the UI thread. Created at startup.
106 virtual QuotaService* quota_service() = 0; 102 virtual QuotaService* quota_service() = 0;
107 103
108 // Called by the ExtensionService that lives in this system. Gives the 104 // Called by the ExtensionService that lives in this system. Gives the
109 // info map a chance to react to the load event before the EXTENSION_LOADED 105 // info map a chance to react to the load event before the EXTENSION_LOADED
110 // notification has fired. The purpose for handling this event first is to 106 // notification has fired. The purpose for handling this event first is to
(...skipping 18 matching lines...) Expand all
129 // Get a set of extensions that depend on the given extension. 125 // Get a set of extensions that depend on the given extension.
130 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser 126 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser
131 // so it can be retrieved from ExtensionSystem directly. 127 // so it can be retrieved from ExtensionSystem directly.
132 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( 128 virtual scoped_ptr<ExtensionSet> GetDependentExtensions(
133 const Extension* extension) = 0; 129 const Extension* extension) = 0;
134 }; 130 };
135 131
136 } // namespace extensions 132 } // namespace extensions
137 133
138 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 134 #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