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

Unified Diff: webkit/glue/weburlloader_impl.cc

Issue 295041: DevTools: report correct content length for resources (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/glue/webplugin_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlloader_impl.cc
===================================================================
--- webkit/glue/weburlloader_impl.cc (revision 30714)
+++ webkit/glue/weburlloader_impl.cc (working copy)
@@ -233,7 +233,6 @@
scoped_ptr<ResourceLoaderBridge> bridge_;
scoped_ptr<FtpDirectoryListingResponseDelegate> ftp_listing_delegate_;
scoped_ptr<MultipartResponseDelegate> multipart_delegate_;
- int64 expected_content_length_;
};
WebURLLoaderImpl::Context::Context(WebURLLoaderImpl* loader)
@@ -432,8 +431,6 @@
PopulateURLResponse(request_.url(), info, &response);
response.setIsContentFiltered(content_filtered);
- expected_content_length_ = response.expectedContentLength();
-
if (info.mime_type == "text/vnd.chromium.ftp-dir")
response.setMIMEType(WebString::fromUTF8("text/html"));
@@ -478,7 +475,7 @@
// client_->didReceiveData and client_->didReceiveResponse.
multipart_delegate_->OnReceivedData(data, len);
} else {
- client_->didReceiveData(loader_, data, len, expected_content_length_);
+ client_->didReceiveData(loader_, data, len);
}
}
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698