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

Unified Diff: net/tools/quic/quic_spdy_client_stream.cc

Issue 2462823002: Deletes dead code. (Closed)
Patch Set: Updated patchset dependency 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
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/quic_spdy_client_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_client_stream.cc
diff --git a/net/tools/quic/quic_spdy_client_stream.cc b/net/tools/quic/quic_spdy_client_stream.cc
index c725c9e0c6da5434be03f853cb3e960d12855d75..425a9afa98c4e67d1329b7c04d17fb35103285cb 100644
--- a/net/tools/quic/quic_spdy_client_stream.cc
+++ b/net/tools/quic/quic_spdy_client_stream.cc
@@ -42,33 +42,6 @@ void QuicSpdyClientStream::OnStreamFrame(const QuicStreamFrame& frame) {
QuicSpdyStream::OnStreamFrame(frame);
}
-void QuicSpdyClientStream::OnInitialHeadersComplete(bool fin,
- size_t frame_len) {
- QuicSpdyStream::OnInitialHeadersComplete(fin, frame_len);
-
- DCHECK(headers_decompressed());
- header_bytes_read_ += frame_len;
- if (!SpdyUtils::ParseHeaders(decompressed_headers().data(),
- decompressed_headers().length(),
- &content_length_, &response_headers_)) {
- DLOG(ERROR) << "Failed to parse headers: " << decompressed_headers();
- Reset(QUIC_BAD_APPLICATION_PAYLOAD);
- return;
- }
-
- if (!ParseHeaderStatusCode(response_headers_, &response_code_)) {
- DLOG(ERROR) << "Received invalid response code: "
- << response_headers_[":status"].as_string();
- Reset(QUIC_BAD_APPLICATION_PAYLOAD);
- return;
- }
-
- MarkHeadersConsumed(decompressed_headers().length());
- DVLOG(1) << "headers complete for stream " << id();
-
- session_->OnInitialHeadersComplete(id(), response_headers_);
-}
-
void QuicSpdyClientStream::OnInitialHeadersComplete(
bool fin,
size_t frame_len,
@@ -105,27 +78,6 @@ void QuicSpdyClientStream::OnTrailingHeadersComplete(
MarkTrailersConsumed();
}
-void QuicSpdyClientStream::OnPromiseHeadersComplete(QuicStreamId promised_id,
- size_t frame_len) {
- header_bytes_read_ += frame_len;
- int64_t content_length = -1;
- SpdyHeaderBlock promise_headers;
- if (!SpdyUtils::ParseHeaders(decompressed_headers().data(),
- decompressed_headers().length(), &content_length,
- &promise_headers)) {
- DLOG(ERROR) << "Failed to parse promise headers: "
- << decompressed_headers();
- Reset(QUIC_BAD_APPLICATION_PAYLOAD);
- return;
- }
- MarkHeadersConsumed(decompressed_headers().length());
-
- session_->HandlePromised(id(), promised_id, promise_headers);
- if (visitor() != nullptr) {
- visitor()->OnPromiseHeadersComplete(promised_id, frame_len);
- }
-}
-
void QuicSpdyClientStream::OnPromiseHeaderList(
QuicStreamId promised_id,
size_t frame_len,
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/quic_spdy_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698