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 const FilePath& install_directory() const { return install_directory_; } | 205 const FilePath& install_directory() const { return install_directory_; } |
206 | 206 |
207 AppsPromo* apps_promo() { return &apps_promo_; } | 207 AppsPromo* apps_promo() { return &apps_promo_; } |
208 | 208 |
209 // Whether this extension can run in an incognito window. | 209 // Whether this extension can run in an incognito window. |
210 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; | 210 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; |
211 virtual void SetIsIncognitoEnabled(const std::string& extension_id, | 211 virtual void SetIsIncognitoEnabled(const std::string& extension_id, |
212 bool enabled); | 212 bool enabled); |
213 | 213 |
| 214 virtual void SetAppNotificationSetupDone(const std::string& extension_id, |
| 215 bool value); |
| 216 |
| 217 virtual void SetAppNotificationDisabled(const std::string& extension_id, |
| 218 bool value); |
| 219 |
214 // Returns true if the given extension can see events and data from another | 220 // Returns true if the given extension can see events and data from another |
215 // sub-profile (incognito to original profile, or vice versa). | 221 // sub-profile (incognito to original profile, or vice versa). |
216 bool CanCrossIncognito(const Extension* extension); | 222 bool CanCrossIncognito(const Extension* extension); |
217 | 223 |
218 // Returns true if the given extension can be loaded in incognito. | 224 // Returns true if the given extension can be loaded in incognito. |
219 bool CanLoadInIncognito(const Extension* extension) const; | 225 bool CanLoadInIncognito(const Extension* extension) const; |
220 | 226 |
221 // Whether this extension can inject scripts into pages with file URLs. | 227 // Whether this extension can inject scripts into pages with file URLs. |
222 bool AllowFileAccess(const Extension* extension); | 228 bool AllowFileAccess(const Extension* extension); |
223 // Will reload the extension since this permission is applied at loading time | 229 // Will reload the extension since this permission is applied at loading time |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 ExtensionWarningSet extension_warnings_; | 845 ExtensionWarningSet extension_warnings_; |
840 | 846 |
841 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
842 InstallAppsWithUnlimtedStorage); | 848 InstallAppsWithUnlimtedStorage); |
843 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
844 InstallAppsAndCheckStorageProtection); | 850 InstallAppsAndCheckStorageProtection); |
845 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 851 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
846 }; | 852 }; |
847 | 853 |
848 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 854 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |