Changeset 71075 in webkit
- Timestamp:
- Nov 1, 2010, 4:58:05 PM (15 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 12 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r71069 r71075 1 2010-11-01 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 Add ArgumentCoder specialization for WTF::CString 6 https://bugs.webkit.org/show_bug.cgi?id=48796 7 8 * Platform/CoreIPC/ArgumentCoders.h: 9 10 2010-11-01 Anders Carlsson <andersca@apple.com> 11 12 Reviewed by John Sullivan. 13 14 Respond to NP_GetProperty by sending a GetProperty message 15 https://bugs.webkit.org/show_bug.cgi?id=48797 16 17 * Platform/CoreIPC/HandleMessage.h: 18 (CoreIPC::callMemberFunction): 19 Add new sync message overload. 20 21 * PluginProcess/WebProcessConnection.cpp: 22 (WebKit::WebProcessConnection::didReceiveSyncMessage): 23 If the message class is MessageClassNPObjectMessageReceiver, pass it to the NPRemoteObjectMap. 24 25 * Shared/Plugins/NPIdentifierData.cpp: 26 * Shared/Plugins/NPIdentifierData.h: 27 Add NPIdentifierData, a CoreIPC representation of an NPIdentifier. 28 29 * Shared/Plugins/NPObjectMessageReceiver.cpp: 30 (WebKit::NPObjectMessageReceiver::getProperty): 31 Add stub. 32 33 * Shared/Plugins/NPObjectMessageReceiver.messages.in: 34 Add GetProperty. 35 36 * Shared/Plugins/NPObjectProxy.cpp: 37 (WebKit::NPObjectProxy::create): 38 (WebKit::NPObjectProxy::NPObjectProxy): 39 (WebKit::NPObjectProxy::initialize): 40 NPObjectProxy now takes an NPRemoteObjectMap in its create function. 41 42 (WebKit::NPObjectProxy::getProperty): 43 Send a GetProperty message. 44 45 (WebKit::NPObjectProxy::NP_GetProperty): 46 Call getProperty. 47 48 * Shared/Plugins/NPRemoteObjectMap.cpp: 49 (WebKit::NPRemoteObjectMap::createNPObjectProxy): 50 Pass the NPRemoteObjectMap. 51 52 (WebKit::NPRemoteObjectMap::didReceiveSyncMessage): 53 Find the right message receiver and dispatch the message to it. 54 55 * Shared/Plugins/NPVariantData.cpp: 56 * Shared/Plugins/NPVariantData.h: 57 Add NPVariantData, which will be a CoreIPC representation of an NPVariant. 58 59 * WebKit2.xcodeproj/project.pbxproj: 60 Add new files. 61 62 * WebProcess/Plugins/PluginProcessConnection.cpp: 63 (WebKit::PluginProcessConnection::didReceiveSyncMessage): 64 If the message class is MessageClassNPObjectMessageReceiver, pass it to the NPRemoteObjectMap. 65 1 66 2010-11-01 Anders Carlsson <andersca@apple.com> 2 67 -
trunk/WebKit2/Platform/CoreIPC/HandleMessage.h
r70333 r71075 84 84 { 85 85 (object->*function)(args.argument1, replyArgs.argument1); 86 } 87 88 template<typename C, typename MF, typename P1, typename R1, typename R2> 89 void callMemberFunction(const Arguments1<P1>& args, Arguments2<R1, R2>& replyArgs, C* object, MF function) 90 { 91 (object->*function)(args.argument1, replyArgs.argument1, replyArgs.argument2); 86 92 } 87 93 -
trunk/WebKit2/PluginProcess/WebProcessConnection.cpp
r71051 r71075 100 100 CoreIPC::SyncReplyMode WebProcessConnection::didReceiveSyncMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments, CoreIPC::ArgumentEncoder* reply) 101 101 { 102 if (!arguments->destinationID()) 102 uint64_t destinationID = arguments->destinationID(); 103 104 if (!destinationID) 103 105 return didReceiveSyncWebProcessConnectionMessage(connection, messageID, arguments, reply); 104 105 if (PluginControllerProxy* pluginControllerProxy = m_pluginControllers.get(arguments->destinationID())) 106 107 if (messageID.is<CoreIPC::MessageClassNPObjectMessageReceiver>()) 108 return m_npRemoteObjectMap.didReceiveSyncMessage(connection, messageID, arguments, reply); 109 110 if (PluginControllerProxy* pluginControllerProxy = m_pluginControllers.get(destinationID)) 106 111 return pluginControllerProxy->didReceiveSyncPluginControllerProxyMessage(connection, messageID, arguments, reply); 107 112 -
trunk/WebKit2/Shared/Plugins/NPIdentifierData.cpp
r71074 r71075 26 26 #if ENABLE(PLUGIN_PROCESS) 27 27 28 #include "NP ObjectMessageReceiver.h"28 #include "NPIdentifierData.h" 29 29 30 #include "NPRuntimeUtilities.h" 30 #include "ArgumentDecoder.h" 31 #include "ArgumentEncoder.h" 31 32 #include "NotImplemented.h" 33 #include "WebCoreArgumentCoders.h" 34 #include <WebCore/IdentifierRep.h> 35 36 using namespace WebCore; 32 37 33 38 namespace WebKit { 34 39 35 PassOwnPtr<NPObjectMessageReceiver> NPObjectMessageReceiver::create(NPObject* npObject) 40 NPIdentifierData::NPIdentifierData() 41 : m_isString(false) 42 , m_number(0) 36 43 { 37 return adoptPtr(new NPObjectMessageReceiver(npObject));38 44 } 39 45 40 NPObjectMessageReceiver::NPObjectMessageReceiver(NPObject* npObject) 41 : m_npObject(npObject)46 47 NPIdentifierData NPIdentifierData::fromNPIdentifier(NPIdentifier npIdentifier) 42 48 { 43 retainNPObject(m_npObject); 49 NPIdentifierData npIdentifierData; 50 51 IdentifierRep* identifierRep = static_cast<IdentifierRep*>(npIdentifier); 52 npIdentifierData.m_isString = identifierRep->isString(); 53 54 if (npIdentifierData.m_isString) 55 npIdentifierData.m_string = identifierRep->string(); 56 else 57 npIdentifierData.m_number = identifierRep->number(); 58 59 return npIdentifierData; 44 60 } 45 61 46 NPObjectMessageReceiver::~NPObjectMessageReceiver() 62 void NPIdentifierData::encode(CoreIPC::ArgumentEncoder* encoder) const 47 63 { 48 releaseNPObject(m_npObject); 64 encoder->encode(m_isString); 65 if (m_isString) 66 encoder->encode(m_string); 67 else 68 encoder->encodeInt32(m_number); 49 69 } 50 70 51 void NPObjectMessageReceiver::deallocate()71 bool NPIdentifierData::decode(CoreIPC::ArgumentDecoder* decoder, NPIdentifierData& result) 52 72 { 53 notImplemented(); 73 if (!decoder->decode(result.m_isString)) 74 return false; 75 76 if (result.m_isString) 77 return decoder->decode(result.m_string); 78 79 return decoder->decodeInt32(result.m_number); 54 80 } 55 81 … … 57 83 58 84 #endif // ENABLE(PLUGIN_PROCESS) 59 -
trunk/WebKit2/Shared/Plugins/NPIdentifierData.h
r71074 r71075 24 24 */ 25 25 26 #ifndef NPIdentifierData_h 27 #define NPIdentifierData_h 28 26 29 #if ENABLE(PLUGIN_PROCESS) 27 30 28 #include "NPObjectMessageReceiver.h" 31 #include <WebCore/npruntime.h> 32 #include <wtf/text/CString.h> 29 33 30 #include "NPRuntimeUtilities.h" 31 #include "NotImplemented.h" 34 namespace CoreIPC { 35 class ArgumentDecoder; 36 class ArgumentEncoder; 37 } 32 38 33 39 namespace WebKit { 34 40 35 PassOwnPtr<NPObjectMessageReceiver> NPObjectMessageReceiver::create(NPObject* npObject) 36 { 37 return adoptPtr(new NPObjectMessageReceiver(npObject)); 38 } 41 // The CoreIPC representation of an NPIdentifier. 39 42 40 NPObjectMessageReceiver::NPObjectMessageReceiver(NPObject* npObject) 41 : m_npObject(npObject) 42 { 43 retainNPObject(m_npObject);44 } 43 class NPIdentifierData { 44 public: 45 NPIdentifierData(); 46 47 static NPIdentifierData fromNPIdentifier(NPIdentifier); 45 48 46 NPObjectMessageReceiver::~NPObjectMessageReceiver() 47 { 48 releaseNPObject(m_npObject); 49 } 49 void encode(CoreIPC::ArgumentEncoder*) const; 50 static bool decode(CoreIPC::ArgumentDecoder*, NPIdentifierData&); 50 51 51 void NPObjectMessageReceiver::deallocate() 52 { 53 notImplemented(); 54 } 52 private: 53 bool m_isString; 54 CString m_string; 55 int m_number; 56 }; 55 57 56 58 } // namespace WebKit 57 59 58 60 #endif // ENABLE(PLUGIN_PROCESS) 59 61 62 #endif // NPIdentifierData_h -
trunk/WebKit2/Shared/Plugins/NPObjectMessageReceiver.cpp
r71057 r71075 28 28 #include "NPObjectMessageReceiver.h" 29 29 30 #include "NPIdentifierData.h" 30 31 #include "NPRuntimeUtilities.h" 31 32 #include "NotImplemented.h" … … 54 55 } 55 56 57 void NPObjectMessageReceiver::getProperty(const NPIdentifierData& propertyNameData, bool& returnValue, NPVariantData& result) 58 { 59 notImplemented(); 60 returnValue = false; 61 } 62 56 63 } // namespace WebKit 57 64 -
trunk/WebKit2/Shared/Plugins/NPObjectMessageReceiver.h
r71057 r71075 36 36 namespace WebKit { 37 37 38 class NPIdentifierData; 39 class NPVariantData; 40 38 41 class NPObjectMessageReceiver { 39 42 WTF_MAKE_NONCOPYABLE(NPObjectMessageReceiver); … … 42 45 static PassOwnPtr<NPObjectMessageReceiver> create(NPObject* npObject); 43 46 ~NPObjectMessageReceiver(); 47 48 CoreIPC::SyncReplyMode didReceiveSyncNPObjectMessageReceiverMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, CoreIPC::ArgumentEncoder*); 44 49 45 50 private: … … 47 52 48 53 // Message handlers. 49 CoreIPC::SyncReplyMode didReceiveSyncNPObjectMessageReceiverMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*, CoreIPC::ArgumentEncoder*);50 54 void deallocate(); 55 void getProperty(const NPIdentifierData&, bool& returnValue, NPVariantData& result); 51 56 52 57 NPObject* m_npObject; -
trunk/WebKit2/Shared/Plugins/NPObjectMessageReceiver.messages.in
r71057 r71075 26 26 # Deallocate the NPObject. 27 27 Deallocate() -> () 28 29 # Get the given property. 30 GetProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue, WebKit::NPVariantData result) 28 31 } 29 32 -
trunk/WebKit2/Shared/Plugins/NPObjectProxy.cpp
r71054 r71075 28 28 #include "NPObjectProxy.h" 29 29 30 #include "Connection.h" 31 #include "NPIdentifierData.h" 32 #include "NPObjectMessageReceiverMessages.h" 33 #include "NPRemoteObjectMap.h" 34 #include "NPRuntimeUtilities.h" 35 #include "NPVariantData.h" 30 36 #include "NotImplemented.h" 31 #include "NPRuntimeUtilities.h"32 37 33 38 namespace WebKit { 34 39 35 NPObjectProxy* NPObjectProxy::create( uint64_t npObjectID)40 NPObjectProxy* NPObjectProxy::create(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID) 36 41 { 37 42 NPObjectProxy* npObjectProxy = toNPObjectProxy(createNPObject(0, npClass())); 38 npObjectProxy->initialize(np ObjectID);43 npObjectProxy->initialize(npRemoteObjectMap, npObjectID); 39 44 40 45 return npObjectProxy; … … 42 47 43 48 NPObjectProxy::NPObjectProxy() 44 : m_npObjectID(0) 49 : m_npRemoteObjectMap(0) 50 , m_npObjectID(0) 45 51 { 46 52 } … … 55 61 } 56 62 57 void NPObjectProxy::initialize( uint64_t npObjectID)63 void NPObjectProxy::initialize(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID) 58 64 { 65 ASSERT(!m_npRemoteObjectMap); 59 66 ASSERT(!m_npObjectID); 67 68 ASSERT(npRemoteObjectMap); 69 ASSERT(npObjectID); 70 71 m_npRemoteObjectMap = npRemoteObjectMap; 60 72 m_npObjectID = npObjectID; 73 } 74 75 bool NPObjectProxy::getProperty(NPIdentifier propertyName, NPVariant* result) 76 { 77 if (!m_npRemoteObjectMap) 78 return false; 79 80 NPIdentifierData propertyNameData = NPIdentifierData::fromNPIdentifier(propertyName); 81 82 bool returnValue = false; 83 NPVariantData resultData; 84 85 if (!m_npRemoteObjectMap->connection()->sendSync(Messages::NPObjectMessageReceiver::GetProperty(propertyNameData), Messages::NPObjectMessageReceiver::GetProperty::Reply(returnValue, resultData), m_npObjectID)) 86 return false; 87 88 notImplemented(); 89 return false; 61 90 } 62 91 … … 119 148 } 120 149 121 bool NPObjectProxy::NP_GetProperty(NPObject* , NPIdentifier propertyName, NPVariant* result)150 bool NPObjectProxy::NP_GetProperty(NPObject* npObject, NPIdentifier propertyName, NPVariant* result) 122 151 { 123 notImplemented(); 124 return false; 152 return toNPObjectProxy(npObject)->getProperty(propertyName, result); 125 153 } 126 154 -
trunk/WebKit2/Shared/Plugins/NPObjectProxy.h
r71054 r71075 34 34 namespace WebKit { 35 35 36 class NPRemoteObjectMap; 37 36 38 class NPObjectProxy : public NPObject { 37 39 WTF_MAKE_NONCOPYABLE(NPObjectProxy); 38 40 39 41 public: 40 static NPObjectProxy* create( uint64_t npObjectID);42 static NPObjectProxy* create(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID); 41 43 42 44 static bool isNPObjectProxy(NPObject*); … … 52 54 ~NPObjectProxy(); 53 55 54 void initialize(uint64_t npObjectID); 56 void initialize(NPRemoteObjectMap* npRemoteObjectMap, uint64_t npObjectID); 57 58 bool getProperty(NPIdentifier propertyName, NPVariant* result); 55 59 56 60 static NPClass* npClass(); … … 67 71 static bool NP_Construct(NPObject*, const NPVariant* arguments, uint32_t argumentCount, NPVariant* result); 68 72 73 NPRemoteObjectMap* m_npRemoteObjectMap; 69 74 uint64_t m_npObjectID; 70 75 }; -
trunk/WebKit2/Shared/Plugins/NPRemoteObjectMap.cpp
r71054 r71075 47 47 NPObjectProxy* NPRemoteObjectMap::createNPObjectProxy(uint64_t remoteObjectID) 48 48 { 49 return NPObjectProxy::create( remoteObjectID);49 return NPObjectProxy::create(this, remoteObjectID); 50 50 } 51 51 … … 58 58 } 59 59 60 CoreIPC::SyncReplyMode NPRemoteObjectMap::didReceiveSyncMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments, CoreIPC::ArgumentEncoder* reply) 61 { 62 NPObjectMessageReceiver* messageReceiver = m_registeredNPObjects.get(arguments->destinationID()); 63 if (!messageReceiver) 64 return CoreIPC::AutomaticReply; 65 66 return messageReceiver->didReceiveSyncNPObjectMessageReceiverMessage(connection, messageID, arguments, reply); 67 } 68 60 69 } // namespace WebKit 61 70 -
trunk/WebKit2/Shared/Plugins/NPRemoteObjectMap.h
r71054 r71075 29 29 #if ENABLE(PLUGIN_PROCESS) 30 30 31 #include "Connection.h" 31 32 #include <WebCore/npruntime.h> 32 33 #include <wtf/HashMap.h> 33 34 #include <wtf/Noncopyable.h> 34 35 namespace CoreIPC {36 class Connection;37 }38 35 39 36 namespace WebKit { … … 54 51 uint64_t registerNPObject(NPObject*); 55 52 53 CoreIPC::Connection* connection() const { return m_connection; } 54 55 CoreIPC::SyncReplyMode didReceiveSyncMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments, CoreIPC::ArgumentEncoder* reply); 56 56 57 private: 57 58 CoreIPC::Connection* m_connection; -
trunk/WebKit2/Shared/Plugins/NPVariantData.cpp
r71074 r71075 26 26 #if ENABLE(PLUGIN_PROCESS) 27 27 28 #include "NP ObjectMessageReceiver.h"28 #include "NPVariantData.h" 29 29 30 #include "NPRuntimeUtilities.h"31 30 #include "NotImplemented.h" 32 31 33 32 namespace WebKit { 34 33 35 PassOwnPtr<NPObjectMessageReceiver> NPObjectMessageReceiver::create(NPObject* npObject) 34 void NPVariantData::encode(CoreIPC::ArgumentEncoder*) const 36 35 { 37 return adoptPtr(new NPObjectMessageReceiver(npObject));36 notImplemented(); 38 37 } 39 38 40 NPObjectMessageReceiver::NPObjectMessageReceiver(NPObject* npObject) 41 : m_npObject(npObject) 42 { 43 retainNPObject(m_npObject); 44 } 45 46 NPObjectMessageReceiver::~NPObjectMessageReceiver() 47 { 48 releaseNPObject(m_npObject); 49 } 50 51 void NPObjectMessageReceiver::deallocate() 39 bool NPVariantData::decode(CoreIPC::ArgumentDecoder*, NPVariantData&) 52 40 { 53 41 notImplemented(); 42 return false; 54 43 } 55 44 … … 57 46 58 47 #endif // ENABLE(PLUGIN_PROCESS) 59 -
trunk/WebKit2/Shared/Plugins/NPVariantData.h
r71074 r71075 24 24 */ 25 25 26 #ifndef NPVariantData_h 27 #define NPVariantData_h 28 26 29 #if ENABLE(PLUGIN_PROCESS) 27 30 28 #include "NPObjectMessageReceiver.h" 29 30 #include "NPRuntimeUtilities.h" 31 #include "NotImplemented.h" 31 namespace CoreIPC { 32 class ArgumentDecoder; 33 class ArgumentEncoder; 34 } 32 35 33 36 namespace WebKit { 34 37 35 PassOwnPtr<NPObjectMessageReceiver> NPObjectMessageReceiver::create(NPObject* npObject) 36 { 37 return adoptPtr(new NPObjectMessageReceiver(npObject)); 38 } 38 // The CoreIPC representation of an NPVariant. 39 39 40 NPObjectMessageReceiver::NPObjectMessageReceiver(NPObject* npObject) 41 : m_npObject(npObject) 42 { 43 retainNPObject(m_npObject); 44 } 45 46 NPObjectMessageReceiver::~NPObjectMessageReceiver() 47 { 48 releaseNPObject(m_npObject); 49 } 50 51 void NPObjectMessageReceiver::deallocate() 52 { 53 notImplemented(); 54 } 40 class NPVariantData { 41 public: 42 void encode(CoreIPC::ArgumentEncoder*) const; 43 static bool decode(CoreIPC::ArgumentDecoder*, NPVariantData&); 44 45 }; 55 46 56 47 } // namespace WebKit 57 48 58 49 #endif // ENABLE(PLUGIN_PROCESS) 59 50 51 #endif // NPVariantData_h -
trunk/WebKit2/WebKit2.xcodeproj/project.pbxproj
r71060 r71075 90 90 1A2D8439127F65D5001EB962 /* NPObjectMessageReceiverMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A2D8437127F65D5001EB962 /* NPObjectMessageReceiverMessageReceiver.cpp */; }; 91 91 1A2D843A127F65D5001EB962 /* NPObjectMessageReceiverMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A2D8438127F65D5001EB962 /* NPObjectMessageReceiverMessages.h */; }; 92 1A2D848B127F6A49001EB962 /* NPIdentifierData.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A2D8489127F6A49001EB962 /* NPIdentifierData.h */; }; 93 1A2D848C127F6A49001EB962 /* NPIdentifierData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A2D848A127F6A49001EB962 /* NPIdentifierData.cpp */; }; 94 1A2D84A3127F6AD1001EB962 /* NPVariantData.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A2D84A1127F6AD1001EB962 /* NPVariantData.h */; }; 95 1A2D84A4127F6AD1001EB962 /* NPVariantData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A2D84A2127F6AD1001EB962 /* NPVariantData.cpp */; }; 92 96 1A30066E1110F4F70031937C /* ResponsivenessTimer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A30066C1110F4F70031937C /* ResponsivenessTimer.h */; }; 93 97 1A30EAC6115D7DA30053E937 /* ConnectionMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A30EAC5115D7DA30053E937 /* ConnectionMac.cpp */; }; … … 598 602 1A2D8437127F65D5001EB962 /* NPObjectMessageReceiverMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NPObjectMessageReceiverMessageReceiver.cpp; sourceTree = "<group>"; }; 599 603 1A2D8438127F65D5001EB962 /* NPObjectMessageReceiverMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NPObjectMessageReceiverMessages.h; sourceTree = "<group>"; }; 604 1A2D8489127F6A49001EB962 /* NPIdentifierData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NPIdentifierData.h; sourceTree = "<group>"; }; 605 1A2D848A127F6A49001EB962 /* NPIdentifierData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NPIdentifierData.cpp; sourceTree = "<group>"; }; 606 1A2D84A1127F6AD1001EB962 /* NPVariantData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NPVariantData.h; sourceTree = "<group>"; }; 607 1A2D84A2127F6AD1001EB962 /* NPVariantData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NPVariantData.cpp; sourceTree = "<group>"; }; 600 608 1A30066C1110F4F70031937C /* ResponsivenessTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResponsivenessTimer.h; sourceTree = "<group>"; }; 601 609 1A30EAC5115D7DA30053E937 /* ConnectionMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ConnectionMac.cpp; sourceTree = "<group>"; }; … … 1348 1356 isa = PBXGroup; 1349 1357 children = ( 1358 1A2D848A127F6A49001EB962 /* NPIdentifierData.cpp */, 1359 1A2D8489127F6A49001EB962 /* NPIdentifierData.h */, 1350 1360 1A1FA35C127A45BF0050E709 /* NPObjectMessageReceiver.cpp */, 1351 1361 1A1FA35B127A45BF0050E709 /* NPObjectMessageReceiver.h */, … … 1355 1365 1A1FA252127A0E4F0050E709 /* NPRemoteObjectMap.cpp */, 1356 1366 1A1FA251127A0E4F0050E709 /* NPRemoteObjectMap.h */, 1367 1A2D84A2127F6AD1001EB962 /* NPVariantData.cpp */, 1368 1A2D84A1127F6AD1001EB962 /* NPVariantData.h */, 1357 1369 ); 1358 1370 path = Plugins; … … 2258 2270 1A2D82A9127F4EAB001EB962 /* NPRemoteObjectMap.h in Headers */, 2259 2271 1A2D843A127F65D5001EB962 /* NPObjectMessageReceiverMessages.h in Headers */, 2272 1A2D848B127F6A49001EB962 /* NPIdentifierData.h in Headers */, 2273 1A2D84A3127F6AD1001EB962 /* NPVariantData.h in Headers */, 2260 2274 ); 2261 2275 runOnlyForDeploymentPostprocessing = 0; … … 2593 2607 1A2D82A8127F4EAB001EB962 /* NPRemoteObjectMap.cpp in Sources */, 2594 2608 1A2D8439127F65D5001EB962 /* NPObjectMessageReceiverMessageReceiver.cpp in Sources */, 2609 1A2D848C127F6A49001EB962 /* NPIdentifierData.cpp in Sources */, 2610 1A2D84A4127F6AD1001EB962 /* NPVariantData.cpp in Sources */, 2595 2611 ); 2596 2612 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp
r71051 r71075 83 83 CoreIPC::SyncReplyMode PluginProcessConnection::didReceiveSyncMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments, CoreIPC::ArgumentEncoder* reply) 84 84 { 85 if (messageID.is<CoreIPC::MessageClassNPObjectMessageReceiver>()) 86 return m_npRemoteObjectMap.didReceiveSyncMessage(connection, messageID, arguments, reply); 87 85 88 if (PluginProxy* pluginProxy = m_plugins.get(arguments->destinationID())) 86 89 return pluginProxy->didReceiveSyncPluginProxyMessage(connection, messageID, arguments, reply); 87 90 88 91 ASSERT_NOT_REACHED(); 89 92 return CoreIPC::AutomaticReply;
Note:
See TracChangeset
for help on using the changeset viewer.