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

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

Issue 2096713002: Reduce SpdyHeaderBlock copies with move semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clear() does not work after all. 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
« no previous file with comments | « net/tools/flip_server/spdy_interface.cc ('k') | no next file » | 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 3ca97702c1c5c9bbca89a0d44a844e9109bd4009..475a0398baedb1f38340039817f17979eb05e175 100644
--- a/net/tools/quic/quic_simple_client.cc
+++ b/net/tools/quic/quic_simple_client.cc
@@ -4,6 +4,8 @@
#include "net/tools/quic/quic_simple_client.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -256,7 +258,7 @@ void QuicSimpleClient::SendRequest(const HttpRequestInfo& headers,
CreateSpdyHeadersFromHttpRequest(headers, headers.extra_headers, net::HTTP2,
true, &header_block);
stream->set_visitor(this);
- stream->SendRequest(header_block, body, fin);
+ stream->SendRequest(std::move(header_block), body, fin);
if (FLAGS_enable_quic_stateless_reject_support) {
// Record this in case we need to resend.
auto new_headers = new HttpRequestInfo;
« no previous file with comments | « net/tools/flip_server/spdy_interface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698