diff options
Diffstat (limited to 'Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h')
-rw-r--r-- | Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h b/Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h index cfb66e1..22352d2 100644 --- a/Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h +++ b/Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h @@ -38,20 +38,22 @@ namespace WebKit { class NPIdentifierData; class NPRemoteObjectMap; class NPVariantData; +class Plugin; class NPObjectMessageReceiver { WTF_MAKE_NONCOPYABLE(NPObjectMessageReceiver); public: - static PassOwnPtr<NPObjectMessageReceiver> create(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID, NPObject* npObject); + static PassOwnPtr<NPObjectMessageReceiver> create(NPRemoteObjectMap*, Plugin*, uint64_t npObjectID, NPObject*); ~NPObjectMessageReceiver(); CoreIPC::SyncReplyMode didReceiveSyncNPObjectMessageReceiverMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, CoreIPC::ArgumentEncoder*); + Plugin* plugin() const { return m_plugin; } NPObject* npObject() const { return m_npObject; } private: - NPObjectMessageReceiver(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID, NPObject* npObject); + NPObjectMessageReceiver(NPRemoteObjectMap*, Plugin*, uint64_t npObjectID, NPObject*); // Message handlers. void deallocate(); @@ -66,9 +68,9 @@ private: void construct(const Vector<NPVariantData>& argumentsData, bool& returnValue, NPVariantData& resultData); NPRemoteObjectMap* m_npRemoteObjectMap; + Plugin* m_plugin; uint64_t m_npObjectID; NPObject* m_npObject; - bool m_shouldReleaseObjectWhenInvalidating; }; } // namespace WebKit |