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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // Called when the initial extensions load has completed. | 386 // Called when the initial extensions load has completed. |
387 virtual void OnLoadedInstalledExtensions(); | 387 virtual void OnLoadedInstalledExtensions(); |
388 | 388 |
389 // Adds |extension| to this ExtensionService and notifies observers than an | 389 // Adds |extension| to this ExtensionService and notifies observers than an |
390 // extension has been loaded. Called by the backend after an extension has | 390 // extension has been loaded. Called by the backend after an extension has |
391 // been loaded from a file and installed. | 391 // been loaded from a file and installed. |
392 virtual void AddExtension(const Extension* extension) OVERRIDE; | 392 virtual void AddExtension(const Extension* extension) OVERRIDE; |
393 | 393 |
394 // Called by the backend when an extension has been installed. | 394 // Called by the backend when an extension has been installed. |
395 void OnExtensionInstalled( | 395 void OnExtensionInstalled( |
396 const Extension* extension, bool from_webstore, int page_index); | 396 const Extension* extension, |
| 397 bool from_webstore, |
| 398 const StringOrdinal& page_ordinal); |
397 | 399 |
398 // Initializes the |extension|'s active permission set and disables the | 400 // Initializes the |extension|'s active permission set and disables the |
399 // extension if the privilege level has increased (e.g., due to an upgrade). | 401 // extension if the privilege level has increased (e.g., due to an upgrade). |
400 void InitializePermissions(const Extension* extension); | 402 void InitializePermissions(const Extension* extension); |
401 | 403 |
402 // Go through each extensions in pref, unload blacklisted extensions | 404 // Go through each extensions in pref, unload blacklisted extensions |
403 // and update the blacklist state in pref. | 405 // and update the blacklist state in pref. |
404 virtual void UpdateExtensionBlacklist( | 406 virtual void UpdateExtensionBlacklist( |
405 const std::vector<std::string>& blacklist) OVERRIDE; | 407 const std::vector<std::string>& blacklist) OVERRIDE; |
406 | 408 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 ImageLoadingTracker tracker_; | 850 ImageLoadingTracker tracker_; |
849 | 851 |
850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
851 InstallAppsWithUnlimtedStorage); | 853 InstallAppsWithUnlimtedStorage); |
852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
853 InstallAppsAndCheckStorageProtection); | 855 InstallAppsAndCheckStorageProtection); |
854 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
855 }; | 857 }; |
856 | 858 |
857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |