From c8c56758c394793fd106f6607b50f0966976e135 Mon Sep 17 00:00:00 2001 From: "eustas@chromium.org" Date: Mon, 10 Feb 2014 12:54:57 +0000 Subject: Add transfer size paramater to didFinishLoading [2/3] Mini DD: https://docs.google.com/a/chromium.org/document/d/1kAKnBKofLc3Tex_JPveubwJcQLT3BhIL3xNQyjvRIps/edit?usp=sharing Most of files contain only signature changes. There are 3 non-trivial changes: 1) ResourceMsg_RequestComplete IPC message receives struct instead of distinct parameters. 2) Use URLRequest::GetTotalReceivedBytes instead of DevToolsNetLogObserver::GetAndResetEncodedDataLength 3) Remove unused code in DevToolsNetLogObserver. BUG=111052 Review URL: https://codereview.chromium.org/143263002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250069 0039d316-1c4b-4281-b951-d872f2087c98 --- content/renderer/npapi/webplugin_impl.cc | 7 +++++-- content/renderer/npapi/webplugin_impl.h | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'content/renderer/npapi') diff --git a/content/renderer/npapi/webplugin_impl.cc b/content/renderer/npapi/webplugin_impl.cc index 4027802..7df9ea4 100644 --- a/content/renderer/npapi/webplugin_impl.cc +++ b/content/renderer/npapi/webplugin_impl.cc @@ -132,7 +132,9 @@ class MultiPartResponseClient : public WebURLLoaderClient { byte_range_lower_bound_ += data_length; } - virtual void didFinishLoading(WebURLLoader*, double finishTime) {} + virtual void didFinishLoading(WebURLLoader*, + double finishTime, + int64_t total_encoded_data_length) {} virtual void didFail(WebURLLoader*, const WebURLError&) {} private: @@ -510,7 +512,8 @@ void WebPluginImpl::LoaderClient::didReceiveCachedMetadata( } void WebPluginImpl::LoaderClient::didFinishLoading( - blink::WebURLLoader* loader, double finishTime) { + blink::WebURLLoader* loader, double finishTime, + int64_t total_encoded_data_length) { parent_->didFinishLoading(loader, finishTime); } diff --git a/content/renderer/npapi/webplugin_impl.h b/content/renderer/npapi/webplugin_impl.h index ef7b8ea..b8b59d5 100644 --- a/content/renderer/npapi/webplugin_impl.h +++ b/content/renderer/npapi/webplugin_impl.h @@ -353,7 +353,8 @@ class WebPluginImpl : public WebPlugin, const char* data, int dataLength) OVERRIDE; virtual void didFinishLoading(blink::WebURLLoader*, - double finishTime) OVERRIDE; + double finishTime, + int64_t total_encoded_data_length) OVERRIDE; virtual void didFail(blink::WebURLLoader*, const blink::WebURLError&) OVERRIDE; -- cgit v1.1