1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/websockets/websocket_handshake_response_info.h" 6 7 #include <string> 8 9 #include "base/time/time.h" 10 #include "net/http/http_response_headers.h" 11 #include "url/gurl.h" 12 13 namespace net { 14 WebSocketHandshakeResponseInfo(const GURL & url,scoped_refptr<HttpResponseHeaders> headers,const IPEndPoint & remote_endpoint,base::Time response_time)15WebSocketHandshakeResponseInfo::WebSocketHandshakeResponseInfo( 16 const GURL& url, 17 scoped_refptr<HttpResponseHeaders> headers, 18 const IPEndPoint& remote_endpoint, 19 base::Time response_time) 20 : url(url), 21 headers(std::move(headers)), 22 remote_endpoint(remote_endpoint), 23 response_time(response_time) {} 24 25 WebSocketHandshakeResponseInfo::~WebSocketHandshakeResponseInfo() = default; 26 27 } // namespace net 28