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

Unified Diff: chrome/renderer/extensions/miscellaneous_bindings.h

Issue 8540012: Enable extension APIs for content scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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: chrome/renderer/extensions/miscellaneous_bindings.h
diff --git a/chrome/renderer/extensions/renderer_extension_bindings.h b/chrome/renderer/extensions/miscellaneous_bindings.h
similarity index 63%
rename from chrome/renderer/extensions/renderer_extension_bindings.h
rename to chrome/renderer/extensions/miscellaneous_bindings.h
index 88cc19a73305a2bdb353e6d2754486c13719c4e6..1db641b876e45ba5dc7a2f0fc2d2726fc374494a 100644
--- a/chrome/renderer/extensions/renderer_extension_bindings.h
+++ b/chrome/renderer/extensions/miscellaneous_bindings.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_EXTENSIONS_RENDERER_EXTENSION_BINDINGS_H_
-#define CHROME_RENDERER_EXTENSIONS_RENDERER_EXTENSION_BINDINGS_H_
+#ifndef CHROME_RENDERER_EXTENSIONS_MISCELLANEOUS_BINDINGS_H_
+#define CHROME_RENDERER_EXTENSIONS_MISCELLANEOUS_BINDINGS_H_
#pragma once
#include <string>
@@ -20,9 +20,14 @@ namespace v8 {
class Extension;
}
-// This class adds extension-related javascript bindings to a renderer. It is
-// used by both web renderers and extension processes.
-class RendererExtensionBindings {
+namespace extensions {
+
+// Manually implements some random JavaScript bindings for the extension system.
+//
+// TODO(aa): This should all get re-implemented using SchemaGeneratedBindings.
+// If anything needs to be manual for some reason, it should be implemented in
+// its own class.
+class MiscellaneousBindings {
public:
// Creates an instance of the extension.
static v8::Extension* Get(ExtensionDispatcher* dispatcher);
@@ -37,4 +42,6 @@ class RendererExtensionBindings {
content::RenderView* restrict_to_render_view);
};
-#endif // CHROME_RENDERER_EXTENSIONS_RENDERER_EXTENSION_BINDINGS_H_
+} // namespace
+
+#endif // CHROME_RENDERER_EXTENSIONS_MISCELLANEOUS_BINDINGS_H_
« no previous file with comments | « chrome/renderer/extensions/extension_process_bindings.cc ('k') | chrome/renderer/extensions/miscellaneous_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698