| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 public: | 22 public: |
| 23 ~TestExtensionService() override; | 23 ~TestExtensionService() override; |
| 24 | 24 |
| 25 // ExtensionServiceInterface implementation. | 25 // ExtensionServiceInterface implementation. |
| 26 extensions::PendingExtensionManager* pending_extension_manager() override; | 26 extensions::PendingExtensionManager* pending_extension_manager() override; |
| 27 | 27 |
| 28 bool UpdateExtension(const std::string& id, | 28 bool UpdateExtension(const std::string& id, |
| 29 const base::FilePath& path, | 29 const base::FilePath& path, |
| 30 bool file_ownership_passed, | 30 bool file_ownership_passed, |
| 31 extensions::CrxInstaller** out_crx_installer) override; | 31 extensions::CrxInstaller** out_crx_installer) override; |
| 32 bool CheckAndUpdateExtension( |
| 33 const std::string& id, |
| 34 const base::FilePath& path, |
| 35 const std::string& hash, |
| 36 bool file_ownership_passed, |
| 37 extensions::CrxInstaller** out_crx_installer) override; |
| 32 const extensions::Extension* GetExtensionById( | 38 const extensions::Extension* GetExtensionById( |
| 33 const std::string& id, | 39 const std::string& id, |
| 34 bool include_disabled) const override; | 40 bool include_disabled) const override; |
| 35 const extensions::Extension* GetInstalledExtension( | 41 const extensions::Extension* GetInstalledExtension( |
| 36 const std::string& id) const override; | 42 const std::string& id) const override; |
| 37 const extensions::Extension* GetPendingExtensionUpdate( | 43 const extensions::Extension* GetPendingExtensionUpdate( |
| 38 const std::string& extension_id) const override; | 44 const std::string& extension_id) const override; |
| 39 void FinishDelayedInstallation(const std::string& extension_id) override; | 45 void FinishDelayedInstallation(const std::string& extension_id) override; |
| 40 bool IsExtensionEnabled(const std::string& extension_id) const override; | 46 bool IsExtensionEnabled(const std::string& extension_id) const override; |
| 41 | 47 |
| 42 void CheckManagementPolicy() override; | 48 void CheckManagementPolicy() override; |
| 43 void CheckForUpdatesSoon() override; | 49 void CheckForUpdatesSoon() override; |
| 44 | 50 |
| 45 bool is_ready() override; | 51 bool is_ready() override; |
| 46 | 52 |
| 47 base::SequencedTaskRunner* GetFileTaskRunner() override; | 53 base::SequencedTaskRunner* GetFileTaskRunner() override; |
| 48 | 54 |
| 49 void AddExtension(const extensions::Extension* extension) override; | 55 void AddExtension(const extensions::Extension* extension) override; |
| 50 void AddComponentExtension(const extensions::Extension* extension) override; | 56 void AddComponentExtension(const extensions::Extension* extension) override; |
| 51 | 57 |
| 52 void UnloadExtension( | 58 void UnloadExtension( |
| 53 const std::string& extension_id, | 59 const std::string& extension_id, |
| 54 extensions::UnloadedExtensionInfo::Reason reason) override; | 60 extensions::UnloadedExtensionInfo::Reason reason) override; |
| 55 void RemoveComponentExtension(const std::string& extension_id) override; | 61 void RemoveComponentExtension(const std::string& extension_id) override; |
| 56 }; | 62 }; |
| 57 | 63 |
| 58 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ | 64 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ |
| OLD | NEW |