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

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

Issue 1006193003: Remove Balsa from QuicSpdyClientStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 9 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 | « no previous file | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index f8f75314a24a7acf74b5263821fecf433483f92f..e99c62d075f25e5b30e22024c0d55f02d77f63fc 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -21,6 +21,7 @@
#include "net/tools/quic/quic_epoll_connection_helper.h"
#include "net/tools/quic/quic_socket_utils.h"
#include "net/tools/quic/quic_spdy_client_stream.h"
+#include "net/tools/quic/spdy_utils.h"
#ifndef SO_RXQ_OVFL
#define SO_RXQ_OVFL 40
@@ -249,7 +250,8 @@ void QuicClient::SendRequest(const BalsaHeaders& headers,
LOG(DFATAL) << "stream creation failed!";
return;
}
- stream->SendRequest(headers, body, fin);
+ stream->SendRequest(
+ SpdyUtils::RequestHeadersToSpdyHeaders(headers), body, fin);
stream->set_visitor(this);
}
@@ -321,15 +323,18 @@ void QuicClient::OnEvent(int fd, EpollEvent* event) {
void QuicClient::OnClose(QuicDataStream* stream) {
QuicSpdyClientStream* client_stream =
static_cast<QuicSpdyClientStream*>(stream);
+ BalsaHeaders headers;
+ SpdyUtils::FillBalsaResponseHeaders(client_stream->headers(), &headers);
+
if (response_listener_.get() != nullptr) {
response_listener_->OnCompleteResponse(
- stream->id(), client_stream->headers(), client_stream->data());
+ stream->id(), headers, client_stream->data());
}
// Store response headers and body.
if (store_response_) {
- latest_response_code_ = client_stream->headers().parsed_response_code();
- client_stream->headers().DumpHeadersToString(&latest_response_headers_);
+ latest_response_code_ = headers.parsed_response_code();
+ headers.DumpHeadersToString(&latest_response_headers_);
latest_response_body_ = client_stream->data();
}
}
« no previous file with comments | « no previous file | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698