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

Unified Diff: content/child/url_response_body_consumer.cc

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase Created 4 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
Index: content/child/url_response_body_consumer.cc
diff --git a/content/child/url_response_body_consumer.cc b/content/child/url_response_body_consumer.cc
index 0bbb44d6db7b99ab23d5318401c58900d71ef3a8..a231d9a5c34e08f376fd2a8acf777e400a0cc877 100644
--- a/content/child/url_response_body_consumer.cc
+++ b/content/child/url_response_body_consumer.cc
@@ -26,10 +26,9 @@ class URLResponseBodyConsumer::ReceivedData final
const char* payload() const override { return payload_; }
int length() const override { return length_; }
- // TODO(yhirano): These return incorrect values. Remove these from
+ // TODO(yhirano): This returns an incorrect value. Remove it from
// ReceivedData before enabling Mojo-Loading.
int encoded_data_length() const override { return length_; }
- int encoded_body_length() const override { return length_; }
private:
const char* const payload_;
« no previous file with comments | « content/child/shared_memory_received_data_factory_unittest.cc ('k') | content/child/url_response_body_consumer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698