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

Unified Diff: content/child/shared_memory_received_data_factory.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/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 5b62db8c75a1e85e10731b5385f5d78985064570..0fb59eaeef49ec74f3443077870a6a9dab9a5430 100644
--- a/content/child/shared_memory_received_data_factory.cc
+++ b/content/child/shared_memory_received_data_factory.cc
@@ -20,13 +20,11 @@ class SharedMemoryReceivedDataFactory::SharedMemoryReceivedData final
const char* payload,
int length,
int encoded_data_length,
- int encoded_body_length,
scoped_refptr<SharedMemoryReceivedDataFactory> factory,
SharedMemoryReceivedDataFactory::TicketId id)
: payload_(payload),
length_(length),
encoded_data_length_(encoded_data_length),
- encoded_body_length_(encoded_body_length),
factory_(factory),
id_(id) {}
@@ -35,13 +33,11 @@ class SharedMemoryReceivedDataFactory::SharedMemoryReceivedData final
const char* payload() const override { return payload_; }
int length() const override { return 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_data_length_;
- const int encoded_body_length_;
scoped_refptr<SharedMemoryReceivedDataFactory> factory_;
SharedMemoryReceivedDataFactory::TicketId id_;
@@ -69,14 +65,13 @@ SharedMemoryReceivedDataFactory::~SharedMemoryReceivedDataFactory() {
std::unique_ptr<RequestPeer::ReceivedData>
SharedMemoryReceivedDataFactory::Create(int offset,
int length,
- int encoded_data_length,
- int encoded_body_length) {
+ int encoded_data_length) {
const char* start = static_cast<char*>(memory_->memory());
const char* payload = start + offset;
TicketId id = id_++;
return base::MakeUnique<SharedMemoryReceivedData>(
- payload, length, encoded_data_length, encoded_body_length, this, id);
+ payload, length, encoded_data_length, this, id);
}
void SharedMemoryReceivedDataFactory::Stop() {
« no previous file with comments | « content/child/shared_memory_received_data_factory.h ('k') | content/child/shared_memory_received_data_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698