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

Unified Diff: net/quic/bidirectional_stream_quic_impl.cc

Issue 2096713002: Reduce SpdyHeaderBlock copies with move semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: net/quic/bidirectional_stream_quic_impl.cc
diff --git a/net/quic/bidirectional_stream_quic_impl.cc b/net/quic/bidirectional_stream_quic_impl.cc
index 1056d1c8e5eefd389dbfde04615d8c9c9a0bf6eb..4c91c9abe15e4edc06b270290669a3c785697744 100644
--- a/net/quic/bidirectional_stream_quic_impl.cc
+++ b/net/quic/bidirectional_stream_quic_impl.cc
@@ -4,6 +4,8 @@
#include "net/quic/bidirectional_stream_quic_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
@@ -96,7 +98,7 @@ void BidirectionalStreamQuicImpl::SendRequestHeaders() {
http_request_info.extra_headers, HTTP2, true,
&headers);
size_t headers_bytes_sent = stream_->WriteHeaders(
- headers, request_info_->end_stream_on_headers, nullptr);
+ std::move(headers), request_info_->end_stream_on_headers, nullptr);
headers_bytes_sent_ += headers_bytes_sent;
has_sent_headers_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698