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

Side by Side Diff: net/websockets/websocket_stream.cc

Issue 2259823002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/websockets/websocket_stream.h" 5 #include "net/websockets/websocket_stream.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 397 }
398 398
399 void WebSocketDispatchOnFinishOpeningHandshake( 399 void WebSocketDispatchOnFinishOpeningHandshake(
400 WebSocketStream::ConnectDelegate* connect_delegate, 400 WebSocketStream::ConnectDelegate* connect_delegate,
401 const GURL& url, 401 const GURL& url,
402 const scoped_refptr<HttpResponseHeaders>& headers, 402 const scoped_refptr<HttpResponseHeaders>& headers,
403 base::Time response_time) { 403 base::Time response_time) {
404 DCHECK(connect_delegate); 404 DCHECK(connect_delegate);
405 if (headers.get()) { 405 if (headers.get()) {
406 connect_delegate->OnFinishOpeningHandshake( 406 connect_delegate->OnFinishOpeningHandshake(
407 base::WrapUnique(new WebSocketHandshakeResponseInfo( 407 base::MakeUnique<WebSocketHandshakeResponseInfo>(
408 url, headers->response_code(), headers->GetStatusText(), headers, 408 url, headers->response_code(), headers->GetStatusText(), headers,
409 response_time))); 409 response_time));
410 } 410 }
411 } 411 }
412 412
413 } // namespace net 413 } // namespace net
OLDNEW
« no previous file with comments | « net/websockets/websocket_deflate_predictor_impl_test.cc ('k') | net/websockets/websocket_stream_cookie_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698