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

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

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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
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"
11 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 11 #include "components/keyed_service/core/keyed_service.h"
12 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
13 13
14 class ExtensionService; 14 class ExtensionService;
15 15
16 #if defined(OS_CHROMEOS) 16 #if defined(OS_CHROMEOS)
17 namespace chromeos { 17 namespace chromeos {
18 class DeviceLocalAccountManagementPolicyProvider; 18 class DeviceLocalAccountManagementPolicyProvider;
19 } 19 }
20 #endif // defined(OS_CHROMEOS) 20 #endif // defined(OS_CHROMEOS)
21 21
(...skipping 14 matching lines...) Expand all
36 class ManagementPolicy; 36 class ManagementPolicy;
37 class OneShotEvent; 37 class OneShotEvent;
38 class ProcessManager; 38 class ProcessManager;
39 class QuotaService; 39 class QuotaService;
40 class RuntimeData; 40 class RuntimeData;
41 class StateStore; 41 class StateStore;
42 class UserScriptMaster; 42 class UserScriptMaster;
43 43
44 // ExtensionSystem manages the lifetime of many of the services used by the 44 // ExtensionSystem manages the lifetime of many of the services used by the
45 // extensions and apps system, and it handles startup and shutdown as needed. 45 // extensions and apps system, and it handles startup and shutdown as needed.
46 // Eventually, we'd like to make more of these services into 46 // Eventually, we'd like to make more of these services into KeyedServices in
47 // BrowserContextKeyedServices in their own right. 47 // their own right.
48 class ExtensionSystem : public BrowserContextKeyedService { 48 class ExtensionSystem : public KeyedService {
49 public: 49 public:
50 ExtensionSystem(); 50 ExtensionSystem();
51 virtual ~ExtensionSystem(); 51 virtual ~ExtensionSystem();
52 52
53 // Returns the instance for the given browser context, or NULL if none. 53 // Returns the instance for the given browser context, or NULL if none.
54 static ExtensionSystem* Get(content::BrowserContext* context); 54 static ExtensionSystem* Get(content::BrowserContext* context);
55 55
56 // Initializes extensions machinery. 56 // Initializes extensions machinery.
57 // Component extensions are always enabled, external and user extensions are 57 // Component extensions are always enabled, external and user extensions are
58 // controlled by |extensions_enabled|. 58 // controlled by |extensions_enabled|.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const std::string& extension_id, 122 const std::string& extension_id,
123 const UnloadedExtensionInfo::Reason reason) {} 123 const UnloadedExtensionInfo::Reason reason) {}
124 124
125 // Signaled when the extension system has completed its startup tasks. 125 // Signaled when the extension system has completed its startup tasks.
126 virtual const OneShotEvent& ready() const = 0; 126 virtual const OneShotEvent& ready() const = 0;
127 }; 127 };
128 128
129 } // namespace extensions 129 } // namespace extensions
130 130
131 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 131 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_registry_factory.cc ('k') | extensions/browser/extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698