| 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 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 const std::string& successor_extension_id); | 188 const std::string& successor_extension_id); |
| 189 | 189 |
| 190 // Getter and setter for the flag that specifies whether the extension is | 190 // Getter and setter for the flag that specifies whether the extension is |
| 191 // being reloaded. | 191 // being reloaded. |
| 192 bool IsBeingReloaded(const std::string& extension_id) const; | 192 bool IsBeingReloaded(const std::string& extension_id) const; |
| 193 void SetBeingReloaded(const std::string& extension_id, bool value); | 193 void SetBeingReloaded(const std::string& extension_id, bool value); |
| 194 | 194 |
| 195 // Initialize and start all installed extensions. | 195 // Initialize and start all installed extensions. |
| 196 void Init(); | 196 void Init(); |
| 197 | 197 |
| 198 // Attempts to verify all extensions using the InstallVerifier. | 198 // Attempts to verify all extensions using the InstallVerifier. The |
| 199 void VerifyAllExtensions(); | 199 // |bootstrap| parameter indicates whether we're doing this because the |
| 200 // InstallVerifier needed to be bootstrapped (otherwise it's for another |
| 201 // reason, e.g. extension install/uninstall). |
| 202 void VerifyAllExtensions(bool bootstrap); |
| 200 | 203 |
| 201 // Once the verifier work is finished, we may want to re-check management | 204 // Once the verifier work is finished, we may want to re-check management |
| 202 // policy if |success| indicates the verifier got a new signature back. | 205 // policy if |success| indicates the verifier got a new signature back. |
| 203 void FinishVerifyAllExtensions(bool success); | 206 void FinishVerifyAllExtensions(bool bootstrap, bool success); |
| 204 | 207 |
| 205 // Called when the associated Profile is going to be destroyed. | 208 // Called when the associated Profile is going to be destroyed. |
| 206 void Shutdown(); | 209 void Shutdown(); |
| 207 | 210 |
| 208 // Look up an extension by ID. Does not include terminated | 211 // Look up an extension by ID. Does not include terminated |
| 209 // extensions. | 212 // extensions. |
| 210 virtual const extensions::Extension* GetExtensionById( | 213 virtual const extensions::Extension* GetExtensionById( |
| 211 const std::string& id, bool include_disabled) const OVERRIDE; | 214 const std::string& id, bool include_disabled) const OVERRIDE; |
| 212 | 215 |
| 213 // Returns the site of the given |extension_id|. Suitable for use with | 216 // Returns the site of the given |extension_id|. Suitable for use with |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 821 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 819 UnloadBlacklistedExtensionPolicy); | 822 UnloadBlacklistedExtensionPolicy); |
| 820 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 823 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 821 WillNotLoadBlacklistedExtensionsFromDirectory); | 824 WillNotLoadBlacklistedExtensionsFromDirectory); |
| 822 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 825 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 823 BlacklistedInPrefsFromStartup); | 826 BlacklistedInPrefsFromStartup); |
| 824 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 827 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 825 }; | 828 }; |
| 826 | 829 |
| 827 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 830 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |