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

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

Issue 207613002: Cleanup: Remove NOTIFICATION_EXTENSION_UNLOADED usage in MediaScanManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, add error console Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_REGISTRY_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 18 matching lines...) Expand all
29 // Flags to pass to GetExtensionById() to select which sets to look in. 29 // Flags to pass to GetExtensionById() to select which sets to look in.
30 enum IncludeFlag { 30 enum IncludeFlag {
31 NONE = 0, 31 NONE = 0,
32 ENABLED = 1 << 0, 32 ENABLED = 1 << 0,
33 DISABLED = 1 << 1, 33 DISABLED = 1 << 1,
34 TERMINATED = 1 << 2, 34 TERMINATED = 1 << 2,
35 BLACKLISTED = 1 << 3, 35 BLACKLISTED = 1 << 3,
36 EVERYTHING = (1 << 4) - 1, 36 EVERYTHING = (1 << 4) - 1,
37 }; 37 };
38 38
39 ExtensionRegistry(); 39 explicit ExtensionRegistry(content::BrowserContext* browser_context);
40 virtual ~ExtensionRegistry(); 40 virtual ~ExtensionRegistry();
41 41
42 // Returns the instance for the given |browser_context|. 42 // Returns the instance for the given |browser_context|.
43 static ExtensionRegistry* Get(content::BrowserContext* browser_context); 43 static ExtensionRegistry* Get(content::BrowserContext* browser_context);
44 44
45 // NOTE: These sets are *eventually* mututally exclusive, but an extension can 45 // NOTE: These sets are *eventually* mututally exclusive, but an extension can
46 // appear in two sets for short periods of time. 46 // appear in two sets for short periods of time.
47 const ExtensionSet& enabled_extensions() const { 47 const ExtensionSet& enabled_extensions() const {
48 return enabled_extensions_; 48 return enabled_extensions_;
49 } 49 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ExtensionSet terminated_extensions_; 130 ExtensionSet terminated_extensions_;
131 131
132 // Extensions that are installed and blacklisted. Generally these shouldn't be 132 // Extensions that are installed and blacklisted. Generally these shouldn't be
133 // considered as installed by the extension platform: we only keep them around 133 // considered as installed by the extension platform: we only keep them around
134 // so that if extensions are blacklisted by mistake they can easily be 134 // so that if extensions are blacklisted by mistake they can easily be
135 // un-blacklisted. 135 // un-blacklisted.
136 ExtensionSet blacklisted_extensions_; 136 ExtensionSet blacklisted_extensions_;
137 137
138 ObserverList<ExtensionRegistryObserver> observers_; 138 ObserverList<ExtensionRegistryObserver> observers_;
139 139
140 content::BrowserContext* const browser_context_;
141
140 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 142 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
141 }; 143 };
142 144
143 } // namespace extensions 145 } // namespace extensions
144 146
145 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 147 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/browser/media_galleries/media_scan_manager.cc ('k') | extensions/browser/extension_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698