Changeset 130316 in webkit
- Timestamp:
- Oct 3, 2012, 1:09:18 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/CMakeLists.txt
r130207 r130316 561 561 WebProcess/WebPage/WebInspector.messages.in 562 562 WebProcess/WebPage/WebPage.messages.in 563 WebProcess/WebPage/WebPageGroupProxy.messages.in 563 564 564 565 WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.messages.in -
trunk/Source/WebKit2/ChangeLog
r130302 r130316 1 2012-10-02 Andy Estes <aestes@apple.com> 2 3 [WebKit2] Add the ability to send messages to the WebPageGroupProxy 4 https://bugs.webkit.org/show_bug.cgi?id=98233 5 6 Reviewed by Anders Carlsson. 7 8 Add a WebPageGroupProxy.messages.in, implement a stub message receiver 9 in WebPageGroupProxy, and teach WebProcess how to route messages to the 10 appropriate WebPageGroupProxy. 11 12 * CMakeLists.txt: Tell a build system about added files. 13 * DerivedSources.make: Ditto. 14 * DerivedSources.pri: Ditto. 15 * GNUmakefile.list.am: Ditto. 16 * WebKit2.xcodeproj/project.pbxproj: Ditto. 17 * win/WebKit2.vcproj: Ditto. 18 * Platform/CoreIPC/MessageID.h: Add MessageClassWebPageGroupProxy. 19 * WebProcess/WebPage/WebPageGroupProxy.cpp: 20 (WebKit::WebPageGroupProxy::didReceiveMessage): Stub out the method 21 that will receive messages. 22 (WebKit::WebPageGroupProxy::didReceiveWebPageGroupProxyMessage): Stub 23 out a method that will exist in WebPageGroupProxyMessageReceiver.cpp 24 once WebPageGroupProxy.messages.in contains messages. 25 * WebProcess/WebPage/WebPageGroupProxy.h: 26 * WebProcess/WebPage/WebPageGroupProxy.messages.in: Added. 27 * WebProcess/WebProcess.cpp: 28 (WebKit::WebProcess::didReceiveMessage): Route messages to the 29 WebPageGroupProxy matching destinationID if the message is of class 30 MessageClassWebPageGroupProxy. 31 1 32 2012-10-02 Anders Carlsson <andersca@apple.com> 2 33 -
trunk/Source/WebKit2/DerivedSources.make
r129286 r130316 80 80 WebNotificationManager \ 81 81 WebPage \ 82 WebPageGroupProxy \ 82 83 WebPageProxy \ 83 84 WebProcess \ -
trunk/Source/WebKit2/DerivedSources.pri
r128045 r130316 101 101 WebInspector.messages.in \ 102 102 WebPage.messages.in \ 103 WebPageGroupProxy.messages.in \ 103 104 WebPageProxy.messages.in \ 104 105 WebProcess.messages.in \ -
trunk/Source/WebKit2/GNUmakefile.list.am
r130257 r130316 206 206 DerivedSources/WebKit2/WebNotificationManagerProxyMessageReceiver.cpp \ 207 207 DerivedSources/WebKit2/WebNotificationManagerProxyMessages.h \ 208 DerivedSources/WebKit2/WebPageGroupProxyMessageReceiver.cpp \ 209 DerivedSources/WebKit2/WebPageGroupProxyMessages.h \ 208 210 DerivedSources/WebKit2/WebPageProxyMessageReceiver.cpp \ 209 211 DerivedSources/WebKit2/WebPageProxyMessages.h \ -
trunk/Source/WebKit2/Platform/CoreIPC/MessageID.h
r130207 r130316 53 53 MessageClassWebNotificationManager, 54 54 MessageClassWebPage, 55 MessageClassWebPageGroupProxy, 55 56 MessageClassWebProcess, 56 57 MessageClassWebResourceCacheManager, -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r130245 r130316 255 255 29CD55AA128E294F00133C85 /* WKAccessibilityWebPageObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 29CD55A8128E294F00133C85 /* WKAccessibilityWebPageObject.h */; }; 256 256 29CD55AB128E294F00133C85 /* WKAccessibilityWebPageObject.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29CD55A9128E294F00133C85 /* WKAccessibilityWebPageObject.mm */; }; 257 29D55DF1161BF9F10031A2E3 /* WebPageGroupProxyMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29D55DEF161BF9F10031A2E3 /* WebPageGroupProxyMessageReceiver.cpp */; }; 258 29D55DF2161BF9F10031A2E3 /* WebPageGroupProxyMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 29D55DF0161BF9F10031A2E3 /* WebPageGroupProxyMessages.h */; }; 257 259 31099973146C75A20029DEB9 /* WebNotificationClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 31099971146C759B0029DEB9 /* WebNotificationClient.cpp */; }; 258 260 310999C7146C9E3D0029DEB9 /* WebNotificationClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 31099968146C71F50029DEB9 /* WebNotificationClient.h */; }; … … 1314 1316 29CD55A8128E294F00133C85 /* WKAccessibilityWebPageObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKAccessibilityWebPageObject.h; sourceTree = "<group>"; }; 1315 1317 29CD55A9128E294F00133C85 /* WKAccessibilityWebPageObject.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKAccessibilityWebPageObject.mm; sourceTree = "<group>"; }; 1318 29D55DEE161BF8780031A2E3 /* WebPageGroupProxy.messages.in */ = {isa = PBXFileReference; lastKnownFileType = text; path = WebPageGroupProxy.messages.in; sourceTree = "<group>"; }; 1319 29D55DEF161BF9F10031A2E3 /* WebPageGroupProxyMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebPageGroupProxyMessageReceiver.cpp; path = WebPageGroupProxyMessageReceiver.cpp; sourceTree = "<group>"; }; 1320 29D55DF0161BF9F10031A2E3 /* WebPageGroupProxyMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebPageGroupProxyMessages.h; path = WebPageGroupProxyMessages.h; sourceTree = "<group>"; }; 1316 1321 31099968146C71F50029DEB9 /* WebNotificationClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebNotificationClient.h; sourceTree = "<group>"; }; 1317 1322 31099971146C759B0029DEB9 /* WebNotificationClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebNotificationClient.cpp; sourceTree = "<group>"; }; … … 2950 2955 BC7B621412A4219A00D174A4 /* WebPageGroupProxy.cpp */, 2951 2956 BC7B621312A4219A00D174A4 /* WebPageGroupProxy.h */, 2957 29D55DEE161BF8780031A2E3 /* WebPageGroupProxy.messages.in */, 2952 2958 BCA0EF7E12331E78007D3CFB /* WebUndoStep.cpp */, 2953 2959 BCA0EF7D12331E78007D3CFB /* WebUndoStep.h */, … … 3786 3792 318BE1651473433700A8FBB2 /* WebNotificationManagerProxyMessageReceiver.cpp */, 3787 3793 318BE1661473433700A8FBB2 /* WebNotificationManagerProxyMessages.h */, 3794 29D55DEF161BF9F10031A2E3 /* WebPageGroupProxyMessageReceiver.cpp */, 3795 29D55DF0161BF9F10031A2E3 /* WebPageGroupProxyMessages.h */, 3788 3796 C0CE729E1247E71D00BC0EC4 /* WebPageMessageReceiver.cpp */, 3789 3797 C0CE729F1247E71D00BC0EC4 /* WebPageMessages.h */, … … 4330 4338 1A3EED0F161A535400AEB4F5 /* MessageReceiverMap.h in Headers */, 4331 4339 1A3EED12161A53D600AEB4F5 /* MessageReceiver.h in Headers */, 4340 29D55DF2161BF9F10031A2E3 /* WebPageGroupProxyMessages.h in Headers */, 4332 4341 ); 4333 4342 runOnlyForDeploymentPostprocessing = 0; … … 5188 5197 BC989D81161A7E5D000D46D3 /* WKWebProcessPlugIn.mm in Sources */, 5189 5198 1A3EED0E161A535400AEB4F5 /* MessageReceiverMap.cpp in Sources */, 5199 29D55DF1161BF9F10031A2E3 /* WebPageGroupProxyMessageReceiver.cpp in Sources */, 5190 5200 ); 5191 5201 runOnlyForDeploymentPostprocessing = 0; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.cpp
r95901 r130316 45 45 { 46 46 } 47 48 void WebPageGroupProxy::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments) 49 { 50 didReceiveWebPageGroupProxyMessage(connection, messageID, arguments); 51 } 52 53 void WebPageGroupProxy::didReceiveWebPageGroupProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) 54 { 55 // FIXME: Remove this once WebPageGroupProxy.messages.in contains messages, 56 // in which case this method will be auto-generated. 57 } 47 58 48 59 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.h
r95901 r130316 31 31 #include <wtf/PassRefPtr.h> 32 32 33 namespace CoreIPC { 34 class ArgumentDecoder; 35 class Connection; 36 class MessageID; 37 } 38 33 39 namespace WebKit { 34 40 … … 44 50 bool isVisibleToInjectedBundle() const { return m_data.visibleToInjectedBundle; } 45 51 bool isVisibleToHistoryClient() const { return m_data.visibleToHistoryClient; } 52 53 void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); 46 54 47 55 private: … … 52 60 53 61 virtual Type type() const { return APIType; } 62 63 void didReceiveWebPageGroupProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); 54 64 55 65 WebPageGroupData m_data; -
trunk/Source/WebKit2/WebProcess/WebProcess.cpp
r130207 r130316 709 709 return; 710 710 } 711 712 if (messageID.is<CoreIPC::MessageClassWebPageGroupProxy>()) { 713 uint64_t pageGroupID = arguments->destinationID(); 714 if (!pageGroupID) 715 return; 716 717 WebPageGroupProxy* pageGroupProxy = webPageGroup(pageGroupID); 718 if (!pageGroupProxy) 719 return; 720 721 pageGroupProxy->didReceiveMessage(connection, messageID, arguments); 722 } 711 723 712 724 uint64_t pageID = arguments->destinationID(); -
trunk/Source/WebKit2/win/WebKit2.vcproj
r130207 r130316 2123 2123 </File> 2124 2124 <File 2125 RelativePath="..\WebProcess\WebPage\WebPageGroupProxy.messages.in" 2126 > 2127 </File> 2128 <File 2125 2129 RelativePath="..\WebProcess\WebPage\WebUndoStep.cpp" 2126 2130 > … … 4444 4448 </File> 4445 4449 <File 4450 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\WebPageGroupProxyMessageReceiver.cpp" 4451 > 4452 </File> 4453 <File 4454 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\WebPageGroupProxyMessages.h" 4455 > 4456 </File> 4457 <File 4446 4458 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\WebPageMessageReceiver.cpp" 4447 4459 >
Note:
See TracChangeset
for help on using the changeset viewer.