Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 | 248 |
| 249 // Returns true if the given extension can be loaded in incognito. | 249 // Returns true if the given extension can be loaded in incognito. |
| 250 bool CanLoadInIncognito(const Extension* extension) const; | 250 bool CanLoadInIncognito(const Extension* extension) const; |
| 251 | 251 |
| 252 // Whether this extension can inject scripts into pages with file URLs. | 252 // Whether this extension can inject scripts into pages with file URLs. |
| 253 bool AllowFileAccess(const Extension* extension); | 253 bool AllowFileAccess(const Extension* extension); |
| 254 // Will reload the extension since this permission is applied at loading time | 254 // Will reload the extension since this permission is applied at loading time |
| 255 // only. | 255 // only. |
| 256 void SetAllowFileAccess(const Extension* extension, bool allow); | 256 void SetAllowFileAccess(const Extension* extension, bool allow); |
| 257 | 257 |
| 258 // Getter and setter for the Browser Action visibility in the toolbar. | |
| 259 bool GetBrowserActionVisibility(const Extension* extension); | |
|
Aaron Boodman
2012/05/14 20:18:13
Thanks for fixing this!
yefimt
2012/05/14 21:07:36
np
| |
| 260 void SetBrowserActionVisibility(const Extension* extension, bool visible); | |
| 261 | |
| 262 // Whether the persistent background page, if any, is ready. We don't load | 258 // Whether the persistent background page, if any, is ready. We don't load |
| 263 // other components until then. If there is no background page, or if it is | 259 // other components until then. If there is no background page, or if it is |
| 264 // non-persistent (lazy), we consider it to be ready. | 260 // non-persistent (lazy), we consider it to be ready. |
| 265 bool IsBackgroundPageReady(const Extension* extension); | 261 bool IsBackgroundPageReady(const Extension* extension); |
| 266 void SetBackgroundPageReady(const Extension* extension); | 262 void SetBackgroundPageReady(const Extension* extension); |
| 267 | 263 |
| 268 // Getter and setter for the flag that specifies whether the extension is | 264 // Getter and setter for the flag that specifies whether the extension is |
| 269 // being upgraded. | 265 // being upgraded. |
| 270 bool IsBeingUpgraded(const Extension* extension); | 266 bool IsBeingUpgraded(const Extension* extension); |
| 271 void SetBeingUpgraded(const Extension* extension, bool value); | 267 void SetBeingUpgraded(const Extension* extension, bool value); |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 847 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 843 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 848 | 844 |
| 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 845 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 850 InstallAppsWithUnlimtedStorage); | 846 InstallAppsWithUnlimtedStorage); |
| 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 852 InstallAppsAndCheckStorageProtection); | 848 InstallAppsAndCheckStorageProtection); |
| 853 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 849 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 854 }; | 850 }; |
| 855 | 851 |
| 856 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 852 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |