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..3048358c6805219e00d6d892cb359db060abb763 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_length, |
+ int encoded_body_length) |
+ : data_(data, data + length), |
+ encoded_length_(encoded_length), |
+ encoded_body_length_(encoded_body_length) {} |
FixedReceivedData::FixedReceivedData(ReceivedData* data) |
: FixedReceivedData(data->payload(), |
data->length(), |
- data->encoded_length()) { |
-} |
+ data->encoded_length(), |
+ data->length()) {} |
FixedReceivedData::FixedReceivedData(const std::vector<char>& data, |
- int encoded_length) |
- : data_(data), encoded_length_(encoded_length) { |
-} |
+ int encoded_length, |
+ int encoded_body_length) |
+ : data_(data), |
+ encoded_length_(encoded_length), |
+ encoded_body_length_(encoded_body_length) {} |
FixedReceivedData::~FixedReceivedData() { |
} |
@@ -38,4 +42,8 @@ int FixedReceivedData::encoded_length() const { |
return encoded_length_; |
} |
+int FixedReceivedData::encoded_body_length() const { |
+ return encoded_body_length_; |
+} |
+ |
} // namespace content |