| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 static bool IsDownloadFromMiniGallery(const GURL& download_url); | 143 static bool IsDownloadFromMiniGallery(const GURL& download_url); |
| 144 | 144 |
| 145 // Attempts to uninstall an extension from a given ExtensionService. Returns | 145 // Attempts to uninstall an extension from a given ExtensionService. Returns |
| 146 // true iff the target extension exists. | 146 // true iff the target extension exists. |
| 147 static bool UninstallExtensionHelper(ExtensionsService* extensions_service, | 147 static bool UninstallExtensionHelper(ExtensionsService* extensions_service, |
| 148 const std::string& extension_id); | 148 const std::string& extension_id); |
| 149 | 149 |
| 150 ExtensionsService(Profile* profile, | 150 ExtensionsService(Profile* profile, |
| 151 const CommandLine* command_line, | 151 const CommandLine* command_line, |
| 152 const FilePath& install_directory, | 152 const FilePath& install_directory, |
| 153 ExtensionPrefs* extension_prefs, |
| 153 bool autoupdate_enabled); | 154 bool autoupdate_enabled); |
| 154 | 155 |
| 155 // Gets the list of currently installed extensions. | 156 // Gets the list of currently installed extensions. |
| 156 virtual const ExtensionList* extensions() const { return &extensions_; } | 157 virtual const ExtensionList* extensions() const { return &extensions_; } |
| 157 virtual const ExtensionList* disabled_extensions() const { | 158 virtual const ExtensionList* disabled_extensions() const { |
| 158 return &disabled_extensions_; | 159 return &disabled_extensions_; |
| 159 } | 160 } |
| 160 | 161 |
| 161 // Gets the set of pending extensions. | 162 // Gets the set of pending extensions. |
| 162 virtual const PendingExtensionMap& pending_extensions() const { | 163 virtual const PendingExtensionMap& pending_extensions() const { |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 571 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
| 571 UpdatePendingExtensionAlreadyInstalled); | 572 UpdatePendingExtensionAlreadyInstalled); |
| 572 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 573 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
| 573 InstallAppsWithUnlimtedStorage); | 574 InstallAppsWithUnlimtedStorage); |
| 574 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, | 575 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, |
| 575 InstallAppsAndCheckStorageProtection); | 576 InstallAppsAndCheckStorageProtection); |
| 576 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); | 577 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); |
| 577 }; | 578 }; |
| 578 | 579 |
| 579 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 580 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |