Make ProxyClientSocket::RestartWithAuth() take CompletionOnceCallback.

Bug: 807724
Change-Id: Ieb4afbaf6986261bbd795051b18a8eb148aa0ad1
Reviewed-on: https://chromium-review.googlesource.com/908868
Reviewed-by: Eric Roman <[email protected]>
Commit-Queue: Bence Béky <[email protected]>
Cr-Commit-Position: refs/heads/master@{#535996}
diff --git a/net/quic/chromium/quic_proxy_client_socket.cc b/net/quic/chromium/quic_proxy_client_socket.cc
index da18061f..b32e93de 100644
--- a/net/quic/chromium/quic_proxy_client_socket.cc
+++ b/net/quic/chromium/quic_proxy_client_socket.cc
@@ -2,10 +2,11 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include <cstdio>
-
 #include "net/quic/chromium/quic_proxy_client_socket.h"
 
+#include <cstdio>
+#include <utility>
+
 #include "base/bind.h"
 #include "base/bind_helpers.h"
 #include "base/callback_helpers.h"
@@ -69,7 +70,7 @@
   return auth_;
 }
 
-int QuicProxyClientSocket::RestartWithAuth(const CompletionCallback& callback) {
+int QuicProxyClientSocket::RestartWithAuth(CompletionOnceCallback callback) {
   // A QUIC Stream can only handle a single request, so the underlying
   // stream may not be reused and a new QuicProxyClientSocket must be
   // created (possibly on top of the same QUIC Session).