Index: chrome/renderer/extensions/app_window_custom_bindings.h |
diff --git a/chrome/renderer/extensions/app_window_custom_bindings.h b/chrome/renderer/extensions/app_window_custom_bindings.h |
index 48635cac80a60d2a7c36d17f7560e835216a17e4..e0f942a250669420ba252acd21b8279f999e4133 100644 |
--- a/chrome/renderer/extensions/app_window_custom_bindings.h |
+++ b/chrome/renderer/extensions/app_window_custom_bindings.h |
@@ -5,15 +5,15 @@ |
#ifndef CHROME_RENDERER_EXTENSIONS_APP_WINDOW_CUSTOM_BINDINGS_H_ |
#define CHROME_RENDERER_EXTENSIONS_APP_WINDOW_CUSTOM_BINDINGS_H_ |
-#include "chrome/renderer/extensions/chrome_v8_extension.h" |
+#include "extensions/renderer/object_backed_native_handler.h" |
namespace extensions { |
class Dispatcher; |
// Implements custom bindings for the app.window API. |
-class AppWindowCustomBindings : public ChromeV8Extension { |
+class AppWindowCustomBindings : public ObjectBackedNativeHandler { |
public: |
- AppWindowCustomBindings(Dispatcher* dispatcher, ChromeV8Context* context); |
+ AppWindowCustomBindings(Dispatcher* dispatcher, ScriptContext* context); |
private: |
void GetView(const v8::FunctionCallbackInfo<v8::Value>& args); |
@@ -23,6 +23,9 @@ class AppWindowCustomBindings : public ChromeV8Extension { |
void GetWindowControlsHtmlTemplate( |
const v8::FunctionCallbackInfo<v8::Value>& args); |
+ // Dispatcher handle. Not owned. |
+ Dispatcher* dispatcher_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AppWindowCustomBindings); |
}; |