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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 // extension has been loaded. Called by the backend after an extension has | 404 // extension has been loaded. Called by the backend after an extension has |
405 // been loaded from a file and installed. | 405 // been loaded from a file and installed. |
406 void AddExtension(const Extension* extension); | 406 void AddExtension(const Extension* extension); |
407 | 407 |
408 // Called by the backend when an unpacked extension has been loaded. | 408 // Called by the backend when an unpacked extension has been loaded. |
409 void OnLoadSingleExtension(const Extension* extension, | 409 void OnLoadSingleExtension(const Extension* extension, |
410 bool prompt_for_plugins); | 410 bool prompt_for_plugins); |
411 | 411 |
412 // Called by the backend when an extension has been installed. | 412 // Called by the backend when an extension has been installed. |
413 void OnExtensionInstalled( | 413 void OnExtensionInstalled( |
414 const Extension* extension, bool from_webstore); | 414 const Extension* extension, bool from_webstore, int page_index); |
415 | 415 |
416 // Initializes the |extension|'s active permission set and disables the | 416 // Initializes the |extension|'s active permission set and disables the |
417 // extension if the privilege level has increased (e.g., due to an upgrade). | 417 // extension if the privilege level has increased (e.g., due to an upgrade). |
418 void InitializePermissions(const Extension* extension); | 418 void InitializePermissions(const Extension* extension); |
419 | 419 |
420 // Go through each extensions in pref, unload blacklisted extensions | 420 // Go through each extensions in pref, unload blacklisted extensions |
421 // and update the blacklist state in pref. | 421 // and update the blacklist state in pref. |
422 virtual void UpdateExtensionBlacklist( | 422 virtual void UpdateExtensionBlacklist( |
423 const std::vector<std::string>& blacklist) OVERRIDE; | 423 const std::vector<std::string>& blacklist) OVERRIDE; |
424 | 424 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 NaClModuleInfoList nacl_module_list_; | 772 NaClModuleInfoList nacl_module_list_; |
773 | 773 |
774 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 774 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
775 InstallAppsWithUnlimtedStorage); | 775 InstallAppsWithUnlimtedStorage); |
776 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 776 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
777 InstallAppsAndCheckStorageProtection); | 777 InstallAppsAndCheckStorageProtection); |
778 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 778 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
779 }; | 779 }; |
780 | 780 |
781 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 781 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |