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

Unified Diff: content/public/child/request_peer.h

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
« no previous file with comments | « content/public/child/fixed_received_data.cc ('k') | content/renderer/fetchers/resource_fetcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/request_peer.h
diff --git a/content/public/child/request_peer.h b/content/public/child/request_peer.h
index 706d887de7790cd568d8574298d5726991175a3a..3390dbea189350317547029ef4067b03954a8d92 100644
--- a/content/public/child/request_peer.h
+++ b/content/public/child/request_peer.h
@@ -53,10 +53,6 @@ class CONTENT_EXPORT RequestPeer {
// different from length(), and may be smaller if the content was
// compressed. -1 means this value is unavailable.
virtual int encoded_data_length() const = 0;
- // The encoded_body_length is the size of the body as transferred over the
- // network or stored in the disk cache, excluding headers. This will be
- // different from length() if a content encoding was used.
- virtual int encoded_body_length() const = 0;
};
// A ThreadSafeReceivedData can be deleted on ANY thread.
@@ -100,7 +96,8 @@ class CONTENT_EXPORT RequestPeer {
bool was_ignored_by_handler,
bool stale_copy_in_cache,
const base::TimeTicks& completion_time,
- int64_t total_transfer_size) = 0;
+ int64_t total_transfer_size,
+ int64_t encoded_body_size) = 0;
virtual ~RequestPeer() {}
};
« no previous file with comments | « content/public/child/fixed_received_data.cc ('k') | content/renderer/fetchers/resource_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698