Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: webkit/plugins/npapi/webplugin_impl.cc

Issue 6771043: Enabled actual transfer size in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment added Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/webplugin_impl.cc
diff --git a/webkit/plugins/npapi/webplugin_impl.cc b/webkit/plugins/npapi/webplugin_impl.cc
index 80943a9b67a7f16d5ef97c3bbfd16792e0a91787..aafcc765c78793c814e15fea212468e8574433b7 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);
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698