| Index: content/child/shared_memory_received_data_factory.cc
|
| diff --git a/content/child/shared_memory_received_data_factory.cc b/content/child/shared_memory_received_data_factory.cc
|
| index 4bfbb3e495bbdd2be66f912bd7157831da9dea6f..beaa48f7e32e94b1bd8c8e2fa2df9922d17da36e 100644
|
| --- a/content/child/shared_memory_received_data_factory.cc
|
| +++ b/content/child/shared_memory_received_data_factory.cc
|
| @@ -19,12 +19,14 @@ class SharedMemoryReceivedDataFactory::SharedMemoryReceivedData final
|
| SharedMemoryReceivedData(
|
| const char* payload,
|
| int length,
|
| - int encoded_length,
|
| + int encoded_data_length,
|
| + int encoded_body_length,
|
| scoped_refptr<SharedMemoryReceivedDataFactory> factory,
|
| SharedMemoryReceivedDataFactory::TicketId id)
|
| : payload_(payload),
|
| length_(length),
|
| - encoded_length_(encoded_length),
|
| + encoded_data_length_(encoded_data_length),
|
| + encoded_body_length_(encoded_body_length),
|
| factory_(factory),
|
| id_(id) {}
|
|
|
| @@ -32,12 +34,14 @@ class SharedMemoryReceivedDataFactory::SharedMemoryReceivedData final
|
|
|
| const char* payload() const override { return payload_; }
|
| int length() const override { return length_; }
|
| - int encoded_length() const override { return encoded_length_; }
|
| + int encoded_data_length() const override { return encoded_data_length_; }
|
| + int encoded_body_length() const override { return encoded_body_length_; }
|
|
|
| private:
|
| const char* const payload_;
|
| const int length_;
|
| - const int encoded_length_;
|
| + const int encoded_data_length_;
|
| + const int encoded_body_length_;
|
|
|
| scoped_refptr<SharedMemoryReceivedDataFactory> factory_;
|
| SharedMemoryReceivedDataFactory::TicketId id_;
|
| @@ -65,13 +69,14 @@ SharedMemoryReceivedDataFactory::~SharedMemoryReceivedDataFactory() {
|
| std::unique_ptr<RequestPeer::ReceivedData>
|
| SharedMemoryReceivedDataFactory::Create(int offset,
|
| int length,
|
| - int encoded_length) {
|
| + int encoded_data_length,
|
| + int encoded_body_length) {
|
| const char* start = static_cast<char*>(memory_->memory());
|
| const char* payload = start + offset;
|
| TicketId id = id_++;
|
|
|
| - return base::WrapUnique(
|
| - new SharedMemoryReceivedData(payload, length, encoded_length, this, id));
|
| + return base::WrapUnique(new SharedMemoryReceivedData(
|
| + payload, length, encoded_data_length, encoded_body_length, this, id));
|
| }
|
|
|
| void SharedMemoryReceivedDataFactory::Stop() {
|
|
|