| 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 HandleExtensionAlertAccept(const ExtensionGlobalError& global_error); | 
|  | 518 | 
|  | 519   // The user wants to get more details about the alerts. Open the | 
|  | 520   // Extensions page. | 
|  | 521   void HandleExtensionAlertDetails(const ExtensionGlobalError& global_error); | 
|  | 522 | 
| 510   // NotificationObserver | 523   // NotificationObserver | 
| 511   virtual void Observe(int type, | 524   virtual void Observe(int type, | 
| 512                        const NotificationSource& source, | 525                        const NotificationSource& source, | 
| 513                        const NotificationDetails& details) OVERRIDE; | 526                        const NotificationDetails& details) OVERRIDE; | 
| 514 | 527 | 
| 515   // Whether there are any apps installed. Component apps are not included. | 528   // Whether there are any apps installed. Component apps are not included. | 
| 516   bool HasApps() const; | 529   bool HasApps() const; | 
| 517 | 530 | 
| 518   // Gets the set of loaded app ids. Component apps are not included. | 531   // Gets the set of loaded app ids. Component apps are not included. | 
| 519   ExtensionIdSet GetAppIds() const; | 532   ExtensionIdSet GetAppIds() const; | 
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 796   SyncBundle extension_sync_bundle_; | 809   SyncBundle extension_sync_bundle_; | 
| 797 | 810 | 
| 798   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 811   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 
| 799                            InstallAppsWithUnlimtedStorage); | 812                            InstallAppsWithUnlimtedStorage); | 
| 800   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 813   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 
| 801                            InstallAppsAndCheckStorageProtection); | 814                            InstallAppsAndCheckStorageProtection); | 
| 802   DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 815   DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 
| 803 }; | 816 }; | 
| 804 | 817 | 
| 805 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 818 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 
| OLD | NEW | 
|---|