Index: components/plugins/renderer/webview_plugin.h |
diff --git a/components/plugins/renderer/webview_plugin.h b/components/plugins/renderer/webview_plugin.h |
index 3286fae6a2bbe0f285b59ebd18877194518c32fb..fdb977710d3186661b6472c841d37aa177791e17 100644 |
--- a/components/plugins/renderer/webview_plugin.h |
+++ b/components/plugins/renderer/webview_plugin.h |
@@ -13,6 +13,7 @@ |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebURLResponse.h" |
#include "third_party/WebKit/public/web/WebFrameClient.h" |
+#include "third_party/WebKit/public/web/WebKit.h" |
#include "third_party/WebKit/public/web/WebPlugin.h" |
#include "third_party/WebKit/public/web/WebViewClient.h" |
@@ -42,10 +43,8 @@ class WebViewPlugin : public blink::WebPlugin, |
public: |
class Delegate { |
public: |
- // Bind |frame| to a Javascript object, enabling the delegate to receive |
- // callback methods from Javascript inside the WebFrame. |
- // This method is called from WebFrameClient::didClearWindowObject. |
- virtual void BindWebFrame(blink::WebFrame* frame) = 0; |
+ // Called to get the V8 handle used to bind the lifetime to the frame. |
+ virtual v8::Local<v8::Value> GetV8Handle(v8::Isolate*) = 0; |
// Called upon a context menu event. |
virtual void ShowContextMenu(const blink::WebMouseEvent&) = 0; |