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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 // Loads particular component extension. | 347 // Loads particular component extension. |
348 const Extension* LoadComponentExtension(const ComponentExtensionInfo& info); | 348 const Extension* LoadComponentExtension(const ComponentExtensionInfo& info); |
349 | 349 |
350 // Unloads particular component extension. | 350 // Unloads particular component extension. |
351 void UnloadComponentExtension(const ComponentExtensionInfo& info); | 351 void UnloadComponentExtension(const ComponentExtensionInfo& info); |
352 | 352 |
353 // Loads all known extensions (used by startup and testing code). | 353 // Loads all known extensions (used by startup and testing code). |
354 void LoadAllExtensions(); | 354 void LoadAllExtensions(); |
355 | 355 |
356 // Continues loading all know extensions. It can be called from | |
357 // LoadAllExtensions or from file thread if we had to relocalize manifest | |
358 // (write_to_prefs is true in that case). | |
359 void ContinueLoadAllExtensions(ExtensionPrefs::ExtensionsInfo* info, | |
360 base::TimeTicks start_time, | |
361 bool write_to_prefs); | |
362 | |
363 // Check for updates (or potentially new extensions from external providers) | 356 // Check for updates (or potentially new extensions from external providers) |
364 void CheckForExternalUpdates(); | 357 void CheckForExternalUpdates(); |
365 | 358 |
366 // Unload the specified extension. | 359 // Unload the specified extension. |
367 void UnloadExtension(const std::string& extension_id, | 360 void UnloadExtension(const std::string& extension_id, |
368 UnloadedExtensionInfo::Reason reason); | 361 UnloadedExtensionInfo::Reason reason); |
369 | 362 |
370 // Unload all extensions. This is currently only called on shutdown, and | 363 // Unload all extensions. This is currently only called on shutdown, and |
371 // does not send notifications. | 364 // does not send notifications. |
372 void UnloadAllExtensions(); | 365 void UnloadAllExtensions(); |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 NaClModuleInfoList nacl_module_list_; | 772 NaClModuleInfoList nacl_module_list_; |
780 | 773 |
781 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 774 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
782 InstallAppsWithUnlimtedStorage); | 775 InstallAppsWithUnlimtedStorage); |
783 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 776 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
784 InstallAppsAndCheckStorageProtection); | 777 InstallAppsAndCheckStorageProtection); |
785 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 778 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
786 }; | 779 }; |
787 | 780 |
788 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 781 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |