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 bool IsNotificationsInitialSetupDone( | |
asargent_no_longer_on_chrome
2011/10/27 16:52:21
Let's remove this IsNotificationsInitialSetupDone
Munjal (Google)
2011/10/27 18:35:05
Done.
When I added this method, I thought it will
| |
215 const std::string& extension_id) const; | |
216 virtual void SetNotificationsInitialSetupDone(const std::string& extension_id, | |
asargent_no_longer_on_chrome
2011/10/27 16:52:21
Rename suggestion:
SetAppNotificationSetupDone
Munjal (Google)
2011/10/27 18:35:05
Done.
| |
217 bool value); | |
218 | |
219 virtual bool IsNotificationsDisabled(const std::string& extension_id) const; | |
asargent_no_longer_on_chrome
2011/10/27 16:52:21
Let's remove this IsNotificationsDisabled method i
Munjal (Google)
2011/10/27 18:35:05
Done.
| |
220 virtual void SetNotificationsDisabled(const std::string& extension_id, | |
asargent_no_longer_on_chrome
2011/10/27 16:52:21
Rename suggestion:
SetAppNotificationDisabled
Munjal (Google)
2011/10/27 18:35:05
Done.
| |
221 bool value); | |
222 | |
214 // Returns true if the given extension can see events and data from another | 223 // Returns true if the given extension can see events and data from another |
215 // sub-profile (incognito to original profile, or vice versa). | 224 // sub-profile (incognito to original profile, or vice versa). |
216 bool CanCrossIncognito(const Extension* extension); | 225 bool CanCrossIncognito(const Extension* extension); |
217 | 226 |
218 // Returns true if the given extension can be loaded in incognito. | 227 // Returns true if the given extension can be loaded in incognito. |
219 bool CanLoadInIncognito(const Extension* extension) const; | 228 bool CanLoadInIncognito(const Extension* extension) const; |
220 | 229 |
221 // Whether this extension can inject scripts into pages with file URLs. | 230 // Whether this extension can inject scripts into pages with file URLs. |
222 bool AllowFileAccess(const Extension* extension); | 231 bool AllowFileAccess(const Extension* extension); |
223 // Will reload the extension since this permission is applied at loading time | 232 // 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_; | 848 ExtensionWarningSet extension_warnings_; |
840 | 849 |
841 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
842 InstallAppsWithUnlimtedStorage); | 851 InstallAppsWithUnlimtedStorage); |
843 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
844 InstallAppsAndCheckStorageProtection); | 853 InstallAppsAndCheckStorageProtection); |
845 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 854 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
846 }; | 855 }; |
847 | 856 |
848 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |