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 APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_ |
| 6 #define APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_ |
| 7 |
| 8 #include "extensions/browser/runtime_api_delegate.h" |
| 9 |
| 10 namespace apps { |
| 11 |
| 12 class ShellRuntimeAPIDelegate : public extensions::RuntimeAPIDelegate { |
| 13 public: |
| 14 // extensions::RuntimeAPIDelegate implementation. |
| 15 virtual void RegisterUpdateObserver( |
| 16 extensions::UpdateObserver* observer) OVERRIDE; |
| 17 virtual void UnregisterUpdateObserver( |
| 18 extensions::UpdateObserver* observer) OVERRIDE; |
| 19 virtual base::Version GetOldExtensionVersion( |
| 20 const extensions::Extension* extension) OVERRIDE; |
| 21 virtual void MaybeReloadExtension(const std::string& extension_id) OVERRIDE; |
| 22 virtual bool RequestUpdateCheck( |
| 23 const std::string& extension_id, |
| 24 const extensions::RuntimeAPI::UpdateCheckCallback& callback) OVERRIDE; |
| 25 virtual void HandleUninstall(const std::string& extension_id, |
| 26 const GURL& uninstall_url) OVERRIDE; |
| 27 virtual bool GetPlatformInfo( |
| 28 extensions::core_api::runtime::GetPlatformInfo::Results::PlatformInfo* |
| 29 info) OVERRIDE; |
| 30 virtual bool RequestRestart(std::string* error_message) OVERRIDE; |
| 31 }; |
| 32 |
| 33 } // namespace apps |
| 34 |
| 35 #endif // APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_ |
OLD | NEW |