From 8bd0de7e38b1f56b00e2ee8c2680b9306ede5eee Mon Sep 17 00:00:00 2001 From: "vsevik@chromium.org" Date: Fri, 8 Apr 2011 18:52:10 +0000 Subject: Enabled actual transfer size in chromium BUG=40502 TEST=Open DevTools, open site having gzip/chunked encoding, ensure transfer size is correct. Review URL: http://codereview.chromium.org/6771043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80965 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/plugins/npapi/webplugin_impl.cc | 6 +++--- webkit/plugins/npapi/webplugin_impl.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'webkit/plugins/npapi') diff --git a/webkit/plugins/npapi/webplugin_impl.cc b/webkit/plugins/npapi/webplugin_impl.cc index 80943a9..aafcc76 100644 --- a/webkit/plugins/npapi/webplugin_impl.cc +++ b/webkit/plugins/npapi/webplugin_impl.cc @@ -111,7 +111,7 @@ class MultiPartResponseClient : public WebURLLoaderClient { // Receives individual part data from a multipart response. virtual void didReceiveData( - WebURLLoader*, const char* data, int data_length, int length_received) { + WebURLLoader*, const char* data, int data_length, int raw_data_length) { // TODO(ananta) // We should defer further loads on multipart resources on the same lines // as regular resources requested by plugins to prevent reentrancy. @@ -952,7 +952,7 @@ void WebPluginImpl::didReceiveResponse(WebURLLoader* loader, void WebPluginImpl::didReceiveData(WebURLLoader* loader, const char *buffer, int data_length, - int length_received) { + int raw_data_length) { WebPluginResourceClient* client = GetClientFromLoader(loader); if (!client) return; @@ -962,7 +962,7 @@ void WebPluginImpl::didReceiveData(WebURLLoader* loader, if (index != multi_part_response_map_.end()) { MultipartResponseDelegate* multi_part_handler = (*index).second; DCHECK(multi_part_handler != NULL); - multi_part_handler->OnReceivedData(buffer, data_length); + multi_part_handler->OnReceivedData(buffer, data_length, raw_data_length); } else { loader->setDefersLoading(true); client->DidReceiveData(buffer, data_length, 0); diff --git a/webkit/plugins/npapi/webplugin_impl.h b/webkit/plugins/npapi/webplugin_impl.h index 85aef63..966dc0e 100644 --- a/webkit/plugins/npapi/webplugin_impl.h +++ b/webkit/plugins/npapi/webplugin_impl.h @@ -205,7 +205,7 @@ class WebPluginImpl : public WebPlugin, const WebKit::WebURLResponse& response); virtual void didReceiveData(WebKit::WebURLLoader* loader, const char *buffer, - int data_length, int length_received); + int data_length, int raw_data_length); virtual void didFinishLoading(WebKit::WebURLLoader* loader, double finishTime); virtual void didFail(WebKit::WebURLLoader* loader, -- cgit v1.1