diff options
author | eustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-10 12:54:57 +0000 |
---|---|---|
committer | eustas@chromium.org <eustas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-10 12:54:57 +0000 |
commit | c8c56758c394793fd106f6607b50f0966976e135 (patch) | |
tree | f75a94538866b7b68dfa5a7217e61a2fdae859d5 /content/renderer/npapi | |
parent | fd00e49adcf05f05a5cff215abed207e738c606c (diff) | |
download | chromium_src-c8c56758c394793fd106f6607b50f0966976e135.zip chromium_src-c8c56758c394793fd106f6607b50f0966976e135.tar.gz chromium_src-c8c56758c394793fd106f6607b50f0966976e135.tar.bz2 |
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
Diffstat (limited to 'content/renderer/npapi')
-rw-r--r-- | content/renderer/npapi/webplugin_impl.cc | 7 | ||||
-rw-r--r-- | content/renderer/npapi/webplugin_impl.h | 3 |
2 files changed, 7 insertions, 3 deletions
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; |