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

Unified Diff: content/public/child/fixed_received_data.cc

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 | « content/public/child/fixed_received_data.h ('k') | content/public/child/request_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/fixed_received_data.cc
diff --git a/content/public/child/fixed_received_data.cc b/content/public/child/fixed_received_data.cc
index c09b4c5834818364f072d652b0660d9e8c49b849..7e02e134273325b9f0f52bdc783f57e1e37629dc 100644
--- a/content/public/child/fixed_received_data.cc
+++ b/content/public/child/fixed_received_data.cc
@@ -8,20 +8,24 @@ namespace content {
FixedReceivedData::FixedReceivedData(const char* data,
size_t length,
- int encoded_length)
- : data_(data, data + length), encoded_length_(encoded_length) {
-}
+ int encoded_data_length,
+ int encoded_body_length)
+ : data_(data, data + length),
+ encoded_data_length_(encoded_data_length),
+ encoded_body_length_(encoded_body_length) {}
FixedReceivedData::FixedReceivedData(ReceivedData* data)
: FixedReceivedData(data->payload(),
data->length(),
- data->encoded_length()) {
-}
+ data->encoded_data_length(),
+ data->length()) {}
FixedReceivedData::FixedReceivedData(const std::vector<char>& data,
- int encoded_length)
- : data_(data), encoded_length_(encoded_length) {
-}
+ int encoded_data_length,
+ int encoded_body_length)
+ : data_(data),
+ encoded_data_length_(encoded_data_length),
+ encoded_body_length_(encoded_body_length) {}
FixedReceivedData::~FixedReceivedData() {
}
@@ -34,8 +38,12 @@ int FixedReceivedData::length() const {
return static_cast<int>(data_.size());
}
-int FixedReceivedData::encoded_length() const {
- return encoded_length_;
+int FixedReceivedData::encoded_data_length() const {
+ return encoded_data_length_;
+}
+
+int FixedReceivedData::encoded_body_length() const {
+ return encoded_body_length_;
}
} // namespace content
« no previous file with comments | « content/public/child/fixed_received_data.h ('k') | content/public/child/request_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698