Index: content/renderer/webplugin_delegate_proxy.h |
diff --git a/content/renderer/webplugin_delegate_proxy.h b/content/renderer/webplugin_delegate_proxy.h |
index 1a05791dfbb1a48343d65806194988a8059d179b..ccbcf5d2a56ebdc836c1a6561f484ff7c89b8025 100644 |
--- a/content/renderer/webplugin_delegate_proxy.h |
+++ b/content/renderer/webplugin_delegate_proxy.h |
@@ -68,6 +68,7 @@ class WebPluginDelegateProxy |
const gfx::Rect& clip_rect) OVERRIDE; |
virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect) OVERRIDE; |
virtual NPObject* GetPluginScriptableObject() OVERRIDE; |
+ virtual struct _NPP* GetPluginNPP() OVERRIDE; |
virtual bool GetFormValue(string16* value) OVERRIDE; |
virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason, |
int notify_id) OVERRIDE; |
@@ -266,6 +267,9 @@ class WebPluginDelegateProxy |
NPObject* npobject_; |
base::WeakPtr<NPObjectStub> window_script_object_; |
+ // Dummy NPP used to uniquely identify this plugin. |
+ scoped_ptr<NPP_t> npp_; |
+ |
// Event passed in by the plugin process and is used to decide if messages |
// need to be pumped in the NPP_HandleEvent sync call. |
scoped_ptr<base::WaitableEvent> modal_loop_pump_messages_event_; |