| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 // Initialize and start all installed extensions. | 256 // Initialize and start all installed extensions. |
| 257 void Init(); | 257 void Init(); |
| 258 | 258 |
| 259 // Called when the associated Profile is going to be destroyed. | 259 // Called when the associated Profile is going to be destroyed. |
| 260 void Shutdown(); | 260 void Shutdown(); |
| 261 | 261 |
| 262 // Reloads the specified extension, sending the onLaunched() event to it if it | 262 // Reloads the specified extension, sending the onLaunched() event to it if it |
| 263 // currently has any window showing. | 263 // currently has any window showing. |
| 264 // Allows noisy failures. | 264 // Allows noisy failures. |
| 265 // NOTE: Reloading an extension can invalidate |extension_id| and Extension |
| 266 // pointers for the given extension. Consider making a copy of |extension_id| |
| 267 // first and retrieving a new Extension pointer afterwards. |
| 265 void ReloadExtension(const std::string& extension_id); | 268 void ReloadExtension(const std::string& extension_id); |
| 266 | 269 |
| 267 // Suppresses noisy failures. | 270 // Suppresses noisy failures. |
| 268 void ReloadExtensionWithQuietFailure(const std::string& extension_id); | 271 void ReloadExtensionWithQuietFailure(const std::string& extension_id); |
| 269 | 272 |
| 270 // Uninstalls the specified extension. Callers should only call this method | 273 // Uninstalls the specified extension. Callers should only call this method |
| 271 // with extensions that exist. |reason| lets the caller specify why the | 274 // with extensions that exist. |reason| lets the caller specify why the |
| 272 // extension is uninstalled. | 275 // extension is uninstalled. |
| 273 // | 276 // |
| 274 // If the return value is true, |deletion_done_callback| is invoked when data | 277 // If the return value is true, |deletion_done_callback| is invoked when data |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 GreylistedExtensionDisabled); | 730 GreylistedExtensionDisabled); |
| 728 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 731 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 729 GreylistDontEnableManuallyDisabled); | 732 GreylistDontEnableManuallyDisabled); |
| 730 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 733 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 731 GreylistUnknownDontChange); | 734 GreylistUnknownDontChange); |
| 732 | 735 |
| 733 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 736 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 734 }; | 737 }; |
| 735 | 738 |
| 736 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 739 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |