Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2332)

Unified Diff: apps/shell/browser/shell_runtime_api_delegate.h

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make clang, cros happy Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..6acebce93497a6f54277f76fe58661910149f158
--- /dev/null
+++ b/apps/shell/browser/shell_runtime_api_delegate.h
@@ -0,0 +1,32 @@
+// 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/api/runtime/runtime_api_delegate.h"
+
+namespace apps {
+
+class ShellRuntimeAPIDelegate : public extensions::RuntimeAPIDelegate {
+ public:
James Cook 2014/05/06 15:57:03 out-of-line constructor and virtual destructor ple
Ken Rockot(use gerrit already) 2014/05/06 17:22:23 Done.
+ // extensions::RuntimeAPIDelegate implementation.
+ virtual void AddUpdateObserver(extensions::UpdateObserver* observer) OVERRIDE;
+ virtual void RemoveUpdateObserver(
+ extensions::UpdateObserver* observer) OVERRIDE;
+ virtual base::Version GetPreviousExtensionVersion(
+ const extensions::Extension* extension) OVERRIDE;
+ virtual void ReloadExtension(const std::string& extension_id) OVERRIDE;
+ virtual bool CheckForUpdates(const std::string& extension_id,
+ const UpdateCheckCallback& callback) OVERRIDE;
+ virtual void OpenURL(const GURL& uninstall_url) OVERRIDE;
+ virtual bool GetPlatformInfo(
+ extensions::core_api::runtime::GetPlatformInfo::Results::PlatformInfo*
+ info) OVERRIDE;
+ virtual bool RestartDevice(std::string* error_message) OVERRIDE;
+};
James Cook 2014/05/06 15:57:03 DISALLOW_COPY_AND_ASSIGN
Ken Rockot(use gerrit already) 2014/05/06 17:22:23 Done.
+
+} // namespace apps
+
+#endif // APPS_SHELL_BROWSER_SHELL_RUNTIME_API_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698