12013-12-08 Gustavo Noronha Silva <gns@gnome.org>
2
3 [Soup] Send original encoded data size to didReceiveBuffer
4 https://bugs.webkit.org/show_bug.cgi?id=125410
5
6 Reviewed by NOBODY (OOPS!).
7
8 No tests, the only way to test this seems to be through the inspector UI.
9
10 * platform/network/ResourceHandle.h:
11 * platform/network/ResourceHandleInternal.h:
12 (WebCore::ResourceHandleInternal::ResourceHandleInternal): data member to track stream
13 position.
14 * platform/network/soup/ResourceHandleSoup.cpp:
15 (WebCore::ResourceHandle::currentStreamPosition): obtains the current stream position by querying
16 the first seekable input stream we find.
17 (WebCore::nextMultipartResponsePartCallback): store the position before we start reading a new part.
18 (WebCore::sendRequestCallback): store the position before we start reading the response body.
19 (WebCore::readCallback): pass the position delta to didReceiveData.
20