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

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

Issue 2141993002: Remove many-many SpdyMajorVersion and NextProto arguments and members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove OnSynStream() and OnSynReply(). Created 4 years, 5 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_in_memory_cache.cc ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_client.cc
diff --git a/net/tools/quic/quic_simple_client.cc b/net/tools/quic/quic_simple_client.cc
index d179b371a91a6e1cffadc6f49e9abcabb8077af0..ffbbd9802ba5ba6c5dc4c743a821a903b95525e9 100644
--- a/net/tools/quic/quic_simple_client.cc
+++ b/net/tools/quic/quic_simple_client.cc
@@ -255,8 +255,8 @@ void QuicSimpleClient::SendRequest(const HttpRequestInfo& headers,
return;
}
SpdyHeaderBlock header_block;
- CreateSpdyHeadersFromHttpRequest(headers, headers.extra_headers, net::HTTP2,
- true, &header_block);
+ CreateSpdyHeadersFromHttpRequest(headers, headers.extra_headers, true,
+ &header_block);
stream->set_visitor(this);
stream->SendRequest(std::move(header_block), body, fin);
if (FLAGS_enable_quic_stateless_reject_support) {
@@ -348,8 +348,7 @@ void QuicSimpleClient::OnClose(QuicSpdyStream* stream) {
QuicSpdyClientStream* client_stream =
static_cast<QuicSpdyClientStream*>(stream);
HttpResponseInfo response;
- SpdyHeadersToHttpResponse(client_stream->response_headers(), net::HTTP2,
- &response);
+ SpdyHeadersToHttpResponse(client_stream->response_headers(), &response);
if (response_listener_.get() != nullptr) {
response_listener_->OnCompleteResponse(stream->id(), *response.headers,
client_stream->data());
« no previous file with comments | « net/tools/quic/quic_in_memory_cache.cc ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698