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

Unified Diff: blimp/net/stream_packet_reader.cc

Issue 2439403003: Refactor BlimpConnection to TCPConnection (Closed)
Patch Set: Added missing Engine Transport Created 4 years, 2 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
Index: blimp/net/stream_packet_reader.cc
diff --git a/blimp/net/stream_packet_reader.cc b/blimp/net/stream_packet_reader.cc
index 08b652e4019e8db38be50bdf0f36ecf4cc81e3a6..af5cae9c7cdbb785800be3fb92cae87901468b97 100644
--- a/blimp/net/stream_packet_reader.cc
+++ b/blimp/net/stream_packet_reader.cc
@@ -38,7 +38,10 @@ std::ostream& operator<<(std::ostream& out,
}
StreamPacketReader::StreamPacketReader(net::StreamSocket* socket)
- : read_state_(ReadState::IDLE), socket_(socket), weak_factory_(this) {
+ : read_state_(ReadState::IDLE),
+ socket_(socket),
+ payload_size_(0),
+ weak_factory_(this) {
DCHECK(socket_);
header_buffer_ = new net::GrowableIOBuffer;
header_buffer_->SetCapacity(kPacketHeaderSizeBytes);
@@ -153,7 +156,7 @@ void StreamPacketReader::OnReadComplete(int result) {
return;
}
- // If the read was succesful, then process the result.
+ // If the read was successful, then process the result.
if (result > 0) {
result = DoReadLoop(result);
}

Powered by Google App Engine
This is Rietveld 408576698