RESOLVED FIXED90142
[WK2] Serialization of Resource[Request,Response,Error] should be shared across ports
https://bugs.webkit.org/show_bug.cgi?id=90142
Summary [WK2] Serialization of Resource[Request,Response,Error] should be shared acro...
Balazs Kelemen
Reported 2012-06-28 00:53:41 PDT
For most ports it is sufficient to encode the ResourceRequestBase, and if needed some additional platform data. We should share the common part.
Attachments
Patch (34.42 KB, patch)
2012-06-28 09:28 PDT, Balazs Kelemen
no flags
Patch (34.41 KB, patch)
2012-06-29 02:24 PDT, Balazs Kelemen
no flags
Patch (31.09 KB, patch)
2012-10-04 05:39 PDT, Balazs Kelemen
no flags
Patch (31.18 KB, patch)
2012-10-04 08:55 PDT, Balazs Kelemen
hausmann: review+
Balazs Kelemen
Comment 1 2012-06-28 09:28:09 PDT
Build Bot
Comment 2 2012-06-28 13:29:16 PDT
Balazs Kelemen
Comment 3 2012-06-29 02:24:17 PDT
Balazs Kelemen
Comment 4 2012-08-21 04:50:28 PDT
Comment on attachment 150120 [details] Patch This is out of date and need to be updated.
Balazs Kelemen
Comment 5 2012-10-04 05:39:41 PDT
Build Bot
Comment 6 2012-10-04 06:10:50 PDT
Balazs Kelemen
Comment 7 2012-10-04 08:55:38 PDT
Balazs Kelemen
Comment 8 2012-10-10 10:43:04 PDT
Simon, could you review this? Originally you was the one mentioned that these should be shared across ports. :) After my first patch a patch landed for platforms using soup, but still Qt can also use the same code to serialize the common data.
Balazs Kelemen
Comment 9 2012-10-12 04:15:20 PDT
Csaba Osztrogonác
Comment 10 2012-10-12 04:20:54 PDT
Comment on attachment 167111 [details] Patch It broke the ARM build: /mnt/raptor2/slaves/qt5-linux-armv7-release/build/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp:505:45: error: 'const ValueType' has no member named 'first' /mnt/raptor2/slaves/qt5-linux-armv7-release/build/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp:505:56: error: 'const ValueType' has no member named 'second'
Sudarsana Nagineni (babu)
Comment 11 2012-10-12 04:37:31 PDT
This change has broken the EFL builds also: http://build.webkit.org/waterfall?category=EFL
Balazs Kelemen
Comment 12 2012-10-12 04:38:54 PDT
(In reply to comment #11) > This change has broken the EFL builds also: > http://build.webkit.org/waterfall?category=EFL Sorry, hopefully I fixed all the builds in http://trac.webkit.org/changeset/131170.
Raphael Kubo da Costa (:rakuco)
Comment 13 2012-10-12 04:44:50 PDT
Another error has now popped up: Linking CXX shared library ../../lib/libewebkit2.so CMakeFiles/ewebkit2.dir/Shared/soup/WebCoreArgumentCodersSoup.cpp.o: In function `CoreIPC::ArgumentCoder<WebCore::ResourceError>::encode(CoreIPC::ArgumentEncoder*, WebCore::ResourceError const&)': WebCoreArgumentCodersSoup.cpp:(.text+0xe4): multiple definition of `CoreIPC::ArgumentCoder<WebCore::ResourceError>::encode(CoreIPC::ArgumentEncoder*, WebCore::ResourceError const&)' CMakeFiles/ewebkit2.dir/Shared/WebCoreArgumentCoders.cpp.o:WebCoreArgumentCoders.cpp:(.text+0x11ca): first defined here CMakeFiles/ewebkit2.dir/Shared/soup/WebCoreArgumentCodersSoup.cpp.o: In function `CoreIPC::ArgumentCoder<WebCore::ResourceError>::decode(CoreIPC::ArgumentDecoder*, WebCore::ResourceError&)': WebCoreArgumentCodersSoup.cpp:(.text+0xe6): multiple definition of `CoreIPC::ArgumentCoder<WebCore::ResourceError>::decode(CoreIPC::ArgumentDecoder*, WebCore::ResourceError&)' CMakeFiles/ewebkit2.dir/Shared/WebCoreArgumentCoders.cpp.o:WebCoreArgumentCoders.cpp:(.text+0x1318): first defined here collect2: ld returned 1 exit status make[2]: *** [lib/libewebkit2.so.0.1.0] Error 1 make[1]: *** [Source/WebKit2/CMakeFiles/ewebkit2.dir/all] Error 2 make: *** [all] Error 2
Balazs Kelemen
Comment 14 2012-10-12 05:01:13 PDT
Sorry, it's not my day. Should be fixed by http://trac.webkit.org/changeset/131174
Note You need to log in before you can comment on or make changes to this bug.