| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |