Index: components/plugins/renderer/webview_plugin.h |
diff --git a/components/plugins/renderer/webview_plugin.h b/components/plugins/renderer/webview_plugin.h |
index 08f5296c790809a8570551d058d0ab9bf5ef3d40..ca1cd185a914745807eecde1de4f0c70a50d48c7 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" |
@@ -38,10 +39,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; |