Chromium Code Reviews| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; | 184 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; |
| 185 | 185 |
| 186 const FilePath& install_directory() const { return install_directory_; } | 186 const FilePath& install_directory() const { return install_directory_; } |
| 187 | 187 |
| 188 AppsPromo* apps_promo() { return &apps_promo_; } | 188 AppsPromo* apps_promo() { return &apps_promo_; } |
| 189 | 189 |
| 190 extensions::ProcessMap* process_map() { return &process_map_; } | 190 extensions::ProcessMap* process_map() { return &process_map_; } |
| 191 | 191 |
| 192 // Whether this extension can run in an incognito window. | 192 // Whether this extension can run in an incognito window. |
| 193 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; | 193 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; |
| 194 virtual void SetIsIncognitoEnabled(const std::string& extension_id, | 194 virtual void SetIsIncognitoEnabled(std::string extension_id, bool enabled); |
|
Finnur
2011/11/10 21:48:44
This is virtual, don't you need to change signatur
| |
| 195 bool enabled); | |
| 196 | 195 |
| 197 virtual void SetAppNotificationSetupDone(const std::string& extension_id, | 196 virtual void SetAppNotificationSetupDone(const std::string& extension_id, |
| 198 bool value); | 197 bool value); |
| 199 | 198 |
| 200 virtual void SetAppNotificationDisabled(const std::string& extension_id, | 199 virtual void SetAppNotificationDisabled(const std::string& extension_id, |
| 201 bool value); | 200 bool value); |
| 202 | 201 |
| 203 // Returns true if the given extension can see events and data from another | 202 // Returns true if the given extension can see events and data from another |
| 204 // sub-profile (incognito to original profile, or vice versa). | 203 // sub-profile (incognito to original profile, or vice versa). |
| 205 bool CanCrossIncognito(const Extension* extension); | 204 bool CanCrossIncognito(const Extension* extension); |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 extensions::ProcessMap process_map_; | 793 extensions::ProcessMap process_map_; |
| 795 | 794 |
| 796 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 795 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 797 InstallAppsWithUnlimtedStorage); | 796 InstallAppsWithUnlimtedStorage); |
| 798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 797 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 799 InstallAppsAndCheckStorageProtection); | 798 InstallAppsAndCheckStorageProtection); |
| 800 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 799 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 801 }; | 800 }; |
| 802 | 801 |
| 803 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 802 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |