Remove inappropriate chrome.{extension,app} bindings for platform apps.
Also:
-Begin process of moving from chrome.extension.lastError to chrome.runtime.lastError.
-Add chrome.runtime.getManifest and chrome.runtime.getURL
BUG=131717
TEST=In platform apps, chrome.extension and chrome.app should not contain any
extension or legacy hosted app stuff on them.
Review URL: https://chromiumcodereview.appspot.com/10666027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145238 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/renderer/extensions/runtime_custom_bindings.h b/chrome/renderer/extensions/runtime_custom_bindings.h
new file mode 100644
index 0000000..56bf98e
--- /dev/null
+++ b/chrome/renderer/extensions/runtime_custom_bindings.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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 CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_
+#define CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "chrome/renderer/extensions/chrome_v8_extension.h"
+#include "v8/include/v8.h"
+
+class ExtensionDispatcher;
+class ChromeV8Context;
+
+namespace extensions {
+
+// The native component of custom bindings for the chrome.runtime API.
+class RuntimeCustomBindings : public ChromeV8Extension {
+ public:
+ explicit RuntimeCustomBindings(ChromeV8Context* context);
+
+ virtual ~RuntimeCustomBindings();
+
+ private:
+ v8::Handle<v8::Value> GetManifest(const v8::Arguments& args);
+
+ ChromeV8Context* context_;
+};
+
+} // extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_