| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "content/common/notification_registrar.h" | 45 #include "content/common/notification_registrar.h" |
| 46 #include "content/common/property_bag.h" | 46 #include "content/common/property_bag.h" |
| 47 | 47 |
| 48 class CrxInstaller; | 48 class CrxInstaller; |
| 49 class ExtensionBookmarkEventRouter; | 49 class ExtensionBookmarkEventRouter; |
| 50 class ExtensionBrowserEventRouter; | 50 class ExtensionBrowserEventRouter; |
| 51 class ExtensionContentSettingsStore; | 51 class ExtensionContentSettingsStore; |
| 52 class ExtensionCookiesEventRouter; | 52 class ExtensionCookiesEventRouter; |
| 53 class ExtensionDownloadsEventRouter; | 53 class ExtensionDownloadsEventRouter; |
| 54 class ExtensionFileBrowserEventRouter; | 54 class ExtensionFileBrowserEventRouter; |
| 55 class ExtensionGlobalError; |
| 55 class ExtensionHistoryEventRouter; | 56 class ExtensionHistoryEventRouter; |
| 56 class ExtensionInstallUI; | 57 class ExtensionInstallUI; |
| 57 class ExtensionManagementEventRouter; | 58 class ExtensionManagementEventRouter; |
| 58 class ExtensionPreferenceEventRouter; | 59 class ExtensionPreferenceEventRouter; |
| 59 class ExtensionServiceBackend; | 60 class ExtensionServiceBackend; |
| 60 class ExtensionSyncData; | 61 class ExtensionSyncData; |
| 61 class ExtensionToolbarModel; | 62 class ExtensionToolbarModel; |
| 62 class ExtensionUpdater; | 63 class ExtensionUpdater; |
| 63 class ExtensionWebNavigationEventRouter; | 64 class ExtensionWebNavigationEventRouter; |
| 64 class GURL; | 65 class GURL; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 Extension::Location location) | 501 Extension::Location location) |
| 501 OVERRIDE; | 502 OVERRIDE; |
| 502 | 503 |
| 503 virtual void OnExternalExtensionUpdateUrlFound(const std::string& id, | 504 virtual void OnExternalExtensionUpdateUrlFound(const std::string& id, |
| 504 const GURL& update_url, | 505 const GURL& update_url, |
| 505 Extension::Location location) | 506 Extension::Location location) |
| 506 OVERRIDE; | 507 OVERRIDE; |
| 507 | 508 |
| 508 virtual void OnExternalProviderReady() OVERRIDE; | 509 virtual void OnExternalProviderReady() OVERRIDE; |
| 509 | 510 |
| 511 // Once all external providers are done, generate any needed alerts about |
| 512 // extensions. |
| 513 void IdentifyAlertableExtensions(); |
| 514 |
| 515 // The user has acknowledged the batch of alerts, so mark all the |
| 516 // alertable extensions accordingly. |
| 517 void HandleNotificationAlertAccept( |
| 518 const ExtensionGlobalError& global_error); |
| 519 |
| 520 // The user wants to get more details about the alerts. Open the |
| 521 // Extensions page. |
| 522 void HandleNotificationAlertDetails( |
| 523 const ExtensionGlobalError& global_error); |
| 524 |
| 510 // NotificationObserver | 525 // NotificationObserver |
| 511 virtual void Observe(int type, | 526 virtual void Observe(int type, |
| 512 const NotificationSource& source, | 527 const NotificationSource& source, |
| 513 const NotificationDetails& details) OVERRIDE; | 528 const NotificationDetails& details) OVERRIDE; |
| 514 | 529 |
| 515 // Whether there are any apps installed. Component apps are not included. | 530 // Whether there are any apps installed. Component apps are not included. |
| 516 bool HasApps() const; | 531 bool HasApps() const; |
| 517 | 532 |
| 518 // Gets the set of loaded app ids. Component apps are not included. | 533 // Gets the set of loaded app ids. Component apps are not included. |
| 519 ExtensionIdSet GetAppIds() const; | 534 ExtensionIdSet GetAppIds() const; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 SyncBundle extension_sync_bundle_; | 811 SyncBundle extension_sync_bundle_; |
| 797 | 812 |
| 798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 813 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 799 InstallAppsWithUnlimtedStorage); | 814 InstallAppsWithUnlimtedStorage); |
| 800 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 815 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 801 InstallAppsAndCheckStorageProtection); | 816 InstallAppsAndCheckStorageProtection); |
| 802 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 817 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 803 }; | 818 }; |
| 804 | 819 |
| 805 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 820 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |