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

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

Issue 137753016: ExtensionSystem cleanup part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps Created 6 years, 10 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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
47 // BrowserContextKeyedServices in their own right. 47 // BrowserContextKeyedServices in their own right.
48 class ExtensionSystem : public BrowserContextKeyedService { 48 class ExtensionSystem : public BrowserContextKeyedService {
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 // A convenience wrapper around ExtensionSystemFactory::GetForBrowserContext.
55 static ExtensionSystem* Get(content::BrowserContext* context); 54 static ExtensionSystem* Get(content::BrowserContext* context);
56 55
57 // Initializes extensions machinery. 56 // Initializes extensions machinery.
58 // Component extensions are always enabled, external and user extensions are 57 // Component extensions are always enabled, external and user extensions are
59 // controlled by |extensions_enabled|. 58 // controlled by |extensions_enabled|.
60 virtual void InitForRegularProfile(bool extensions_enabled) = 0; 59 virtual void InitForRegularProfile(bool extensions_enabled) = 0;
61 60
62 // The ExtensionService is created at startup. 61 // The ExtensionService is created at startup.
63 virtual ExtensionService* extension_service() = 0; 62 virtual ExtensionService* extension_service() = 0;
64 63
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const std::string& extension_id, 122 const std::string& extension_id,
124 const UnloadedExtensionInfo::Reason reason) {} 123 const UnloadedExtensionInfo::Reason reason) {}
125 124
126 // Signaled when the extension system has completed its startup tasks. 125 // Signaled when the extension system has completed its startup tasks.
127 virtual const OneShotEvent& ready() const = 0; 126 virtual const OneShotEvent& ready() const = 0;
128 }; 127 };
129 128
130 } // namespace extensions 129 } // namespace extensions
131 130
132 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 131 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698