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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // Called when the initial extensions load has completed. | 382 // Called when the initial extensions load has completed. |
383 virtual void OnLoadedInstalledExtensions(); | 383 virtual void OnLoadedInstalledExtensions(); |
384 | 384 |
385 // Adds |extension| to this ExtensionService and notifies observers than an | 385 // Adds |extension| to this ExtensionService and notifies observers than an |
386 // extension has been loaded. Called by the backend after an extension has | 386 // extension has been loaded. Called by the backend after an extension has |
387 // been loaded from a file and installed. | 387 // been loaded from a file and installed. |
388 virtual void AddExtension(const Extension* extension) OVERRIDE; | 388 virtual void AddExtension(const Extension* extension) OVERRIDE; |
389 | 389 |
390 // Called by the backend when an extension has been installed. | 390 // Called by the backend when an extension has been installed. |
391 void OnExtensionInstalled( | 391 void OnExtensionInstalled( |
392 const Extension* extension, bool from_webstore, int page_index); | 392 const Extension* extension, |
| 393 bool from_webstore, |
| 394 const StringOrdinal& page_ordinal); |
393 | 395 |
394 // Initializes the |extension|'s active permission set and disables the | 396 // Initializes the |extension|'s active permission set and disables the |
395 // extension if the privilege level has increased (e.g., due to an upgrade). | 397 // extension if the privilege level has increased (e.g., due to an upgrade). |
396 void InitializePermissions(const Extension* extension); | 398 void InitializePermissions(const Extension* extension); |
397 | 399 |
398 // Go through each extensions in pref, unload blacklisted extensions | 400 // Go through each extensions in pref, unload blacklisted extensions |
399 // and update the blacklist state in pref. | 401 // and update the blacklist state in pref. |
400 virtual void UpdateExtensionBlacklist( | 402 virtual void UpdateExtensionBlacklist( |
401 const std::vector<std::string>& blacklist) OVERRIDE; | 403 const std::vector<std::string>& blacklist) OVERRIDE; |
402 | 404 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 extensions::ProcessMap process_map_; | 821 extensions::ProcessMap process_map_; |
820 | 822 |
821 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 823 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
822 InstallAppsWithUnlimtedStorage); | 824 InstallAppsWithUnlimtedStorage); |
823 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 825 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
824 InstallAppsAndCheckStorageProtection); | 826 InstallAppsAndCheckStorageProtection); |
825 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 827 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
826 }; | 828 }; |
827 | 829 |
828 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 830 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |