OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
| 6 #define EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
| 7 |
| 8 #include "extensions/browser/runtime_api_delegate.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 class TestRuntimeAPIDelegate : public RuntimeAPIDelegate { |
| 13 public: |
| 14 // RuntimeAPIDelegate implementation. |
| 15 virtual void RegisterUpdateObserver(UpdateObserver* observer) OVERRIDE; |
| 16 virtual void UnregisterUpdateObserver(UpdateObserver* observer) OVERRIDE; |
| 17 virtual base::Version GetOldExtensionVersion( |
| 18 const Extension* extension) OVERRIDE; |
| 19 virtual void MaybeReloadExtension(const std::string& extension_id) OVERRIDE; |
| 20 virtual bool RequestUpdateCheck( |
| 21 const std::string& extension_id, |
| 22 const RuntimeAPI::UpdateCheckCallback& callback) OVERRIDE; |
| 23 virtual void HandleUninstall(const std::string& extension_id, |
| 24 const GURL& uninstall_url) OVERRIDE; |
| 25 virtual bool GetPlatformInfo( |
| 26 core_api::runtime::GetPlatformInfo::Results::PlatformInfo* info) OVERRIDE; |
| 27 virtual bool RequestRestart(std::string* error_message) OVERRIDE; |
| 28 }; |
| 29 |
| 30 } // namespace extensions |
| 31 |
| 32 #endif // EXENSIONS_BROWSER_TEST_RUNTIME_API_DELEGATE_H_ |
OLD | NEW |