OLD | NEW |
---|---|
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 27 matching lines...) Expand all Loading... | |
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_; } | 46 content::BrowserContext* browser_context() const { return browser_context_; } |
47 | 47 |
48 // NOTE: These sets are *eventually* mututally exclusive, but an extension can | 48 // NOTE: These sets are *eventually* mutually exclusive, but an extension can |
miket_OOO
2014/10/07 22:58:21
Thanks!
| |
49 // appear in two sets for short periods of time. | 49 // appear in two sets for short periods of time. |
50 const ExtensionSet& enabled_extensions() const { | 50 const ExtensionSet& enabled_extensions() const { |
51 return enabled_extensions_; | 51 return enabled_extensions_; |
52 } | 52 } |
53 const ExtensionSet& disabled_extensions() const { | 53 const ExtensionSet& disabled_extensions() const { |
54 return disabled_extensions_; | 54 return disabled_extensions_; |
55 } | 55 } |
56 const ExtensionSet& terminated_extensions() const { | 56 const ExtensionSet& terminated_extensions() const { |
57 return terminated_extensions_; | 57 return terminated_extensions_; |
58 } | 58 } |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 ObserverList<ExtensionRegistryObserver> observers_; | 163 ObserverList<ExtensionRegistryObserver> observers_; |
164 | 164 |
165 content::BrowserContext* const browser_context_; | 165 content::BrowserContext* const browser_context_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); | 167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace extensions | 170 } // namespace extensions |
171 | 171 |
172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ | 172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
OLD | NEW |