Index: apps/shell/browser/shell_runtime_api_delegate.h |
diff --git a/apps/shell/browser/shell_runtime_api_delegate.h b/apps/shell/browser/shell_runtime_api_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d3b93c28f1a43a1177382ee595fba782f554f9e4 |
--- /dev/null |
+++ b/apps/shell/browser/shell_runtime_api_delegate.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_ |
+#define APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_ |
+ |
+#include "extensions/browser/runtime_api_delegate.h" |
+ |
+namespace apps { |
+ |
+class ShellRuntimeAPIDelegate : public extensions::RuntimeAPIDelegate { |
+ public: |
+ // extensions::RuntimeAPIDelegate implementation. |
+ virtual void RegisterUpdateObserver( |
+ extensions::UpdateObserver* observer) OVERRIDE; |
+ virtual void UnregisterUpdateObserver( |
+ extensions::UpdateObserver* observer) OVERRIDE; |
+ virtual base::Version GetOldExtensionVersion( |
+ const extensions::Extension* extension) OVERRIDE; |
+ virtual void MaybeReloadExtension(const std::string& extension_id) OVERRIDE; |
+ virtual bool RequestUpdateCheck( |
+ const std::string& extension_id, |
+ const extensions::RuntimeAPI::UpdateCheckCallback& callback) OVERRIDE; |
+ virtual void HandleUninstall(const std::string& extension_id, |
+ const GURL& uninstall_url) OVERRIDE; |
+ virtual bool GetPlatformInfo( |
+ extensions::core_api::runtime::GetPlatformInfo::Results::PlatformInfo* |
+ info) OVERRIDE; |
+ virtual bool RequestRestart(std::string* error_message) OVERRIDE; |
+}; |
+ |
+} // namespace apps |
+ |
+#endif // APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_ |