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

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

Issue 408523005: Reland: Refactor code that defers extension background page loading (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « extensions/DEPS ('k') | extensions/browser/extensions_browser_client.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 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 25 matching lines...) Expand all
36 BLACKLISTED = 1 << 3, 36 BLACKLISTED = 1 << 3,
37 EVERYTHING = (1 << 4) - 1, 37 EVERYTHING = (1 << 4) - 1,
38 }; 38 };
39 39
40 explicit ExtensionRegistry(content::BrowserContext* browser_context); 40 explicit ExtensionRegistry(content::BrowserContext* browser_context);
41 virtual ~ExtensionRegistry(); 41 virtual ~ExtensionRegistry();
42 42
43 // Returns the instance for the given |browser_context|. 43 // Returns the instance for the given |browser_context|.
44 static ExtensionRegistry* Get(content::BrowserContext* browser_context); 44 static ExtensionRegistry* Get(content::BrowserContext* browser_context);
45 45
46 content::BrowserContext* browser_context() const { return browser_context_; }
47
46 // NOTE: These sets are *eventually* mututally exclusive, but an extension can 48 // NOTE: These sets are *eventually* mututally exclusive, but an extension can
47 // appear in two sets for short periods of time. 49 // appear in two sets for short periods of time.
48 const ExtensionSet& enabled_extensions() const { 50 const ExtensionSet& enabled_extensions() const {
49 return enabled_extensions_; 51 return enabled_extensions_;
50 } 52 }
51 const ExtensionSet& disabled_extensions() const { 53 const ExtensionSet& disabled_extensions() const {
52 return disabled_extensions_; 54 return disabled_extensions_;
53 } 55 }
54 const ExtensionSet& terminated_extensions() const { 56 const ExtensionSet& terminated_extensions() const {
55 return terminated_extensions_; 57 return terminated_extensions_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 ObserverList<ExtensionRegistryObserver> observers_; 163 ObserverList<ExtensionRegistryObserver> observers_;
162 164
163 content::BrowserContext* const browser_context_; 165 content::BrowserContext* const browser_context_;
164 166
165 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); 167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry);
166 }; 168 };
167 169
168 } // namespace extensions 170 } // namespace extensions
169 171
170 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ 172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_
OLDNEW
« no previous file with comments | « extensions/DEPS ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698