OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 // Whether this extension can run in an incognito window. | 205 // Whether this extension can run in an incognito window. |
206 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; | 206 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; |
207 virtual void SetIsIncognitoEnabled(const std::string& extension_id, | 207 virtual void SetIsIncognitoEnabled(const std::string& extension_id, |
208 bool enabled); | 208 bool enabled); |
209 | 209 |
210 // Returns true if the given extension can see events and data from another | 210 // Returns true if the given extension can see events and data from another |
211 // sub-profile (incognito to original profile, or vice versa). | 211 // sub-profile (incognito to original profile, or vice versa). |
212 bool CanCrossIncognito(const Extension* extension); | 212 bool CanCrossIncognito(const Extension* extension); |
213 | 213 |
| 214 // Returns true if the given extension can be loaded in incognito. |
| 215 bool CanLoadInIncognito(const Extension* extension) const; |
| 216 |
214 // Whether this extension can inject scripts into pages with file URLs. | 217 // Whether this extension can inject scripts into pages with file URLs. |
215 bool AllowFileAccess(const Extension* extension); | 218 bool AllowFileAccess(const Extension* extension); |
216 // Will reload the extension since this permission is applied at loading time | 219 // Will reload the extension since this permission is applied at loading time |
217 // only. | 220 // only. |
218 void SetAllowFileAccess(const Extension* extension, bool allow); | 221 void SetAllowFileAccess(const Extension* extension, bool allow); |
219 | 222 |
220 // Getter and setter for the Browser Action visibility in the toolbar. | 223 // Getter and setter for the Browser Action visibility in the toolbar. |
221 bool GetBrowserActionVisibility(const Extension* extension); | 224 bool GetBrowserActionVisibility(const Extension* extension); |
222 void SetBrowserActionVisibility(const Extension* extension, bool visible); | 225 void SetBrowserActionVisibility(const Extension* extension, bool visible); |
223 | 226 |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 NaClModuleInfoList nacl_module_list_; | 693 NaClModuleInfoList nacl_module_list_; |
691 | 694 |
692 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 695 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
693 InstallAppsWithUnlimtedStorage); | 696 InstallAppsWithUnlimtedStorage); |
694 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 697 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
695 InstallAppsAndCheckStorageProtection); | 698 InstallAppsAndCheckStorageProtection); |
696 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 699 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
697 }; | 700 }; |
698 | 701 |
699 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 702 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |