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

Unified Diff: extensions/renderer/document_custom_bindings.h

Issue 235943018: Move extensions bindings code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 8 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
« no previous file with comments | « extensions/renderer/css_native_handler.cc ('k') | extensions/renderer/document_custom_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/document_custom_bindings.h
diff --git a/chrome/renderer/extensions/document_custom_bindings.h b/extensions/renderer/document_custom_bindings.h
similarity index 53%
rename from chrome/renderer/extensions/document_custom_bindings.h
rename to extensions/renderer/document_custom_bindings.h
index 4a160151d9a8646f5d05b071ca776a5110373fd9..23b174863539e8e8d38ed46d85709a48574dd3bb 100644
--- a/chrome/renderer/extensions/document_custom_bindings.h
+++ b/extensions/renderer/document_custom_bindings.h
@@ -2,17 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_RENDERER_EXTENSIONS_DOCUMENT_CUSTOM_BINDINGS_H_
-#define CHROME_RENDERER_EXTENSIONS_DOCUMENT_CUSTOM_BINDINGS_H_
+#ifndef EXTENSIONS_RENDERER_DOCUMENT_CUSTOM_BINDINGS_H_
+#define EXTENSIONS_RENDERER_DOCUMENT_CUSTOM_BINDINGS_H_
-#include "chrome/renderer/extensions/chrome_v8_extension.h"
+#include "extensions/renderer/object_backed_native_handler.h"
namespace extensions {
+class ScriptContext;
// Implements custom bindings for document-level operations.
-class DocumentCustomBindings : public ChromeV8Extension {
+class DocumentCustomBindings : public ObjectBackedNativeHandler {
public:
- DocumentCustomBindings(Dispatcher* dispatcher, ChromeV8Context* context);
+ DocumentCustomBindings(ScriptContext* context);
private:
// Registers the provided element as a custom element in Blink.
@@ -21,4 +22,4 @@ class DocumentCustomBindings : public ChromeV8Extension {
} // namespace extensions
-#endif // CHROME_RENDERER_EXTENSIONS_DOCUMENT_CUSTOM_BINDINGS_H_
+#endif // EXTENSIONS_RENDERER_DOCUMENT_CUSTOM_BINDINGS_H_
« no previous file with comments | « extensions/renderer/css_native_handler.cc ('k') | extensions/renderer/document_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698