xref: /aosp_15_r20/external/cronet/net/websockets/websocket_handshake_response_info.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2014 The Chromium Authors
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 <utility>
8 
9 #include "base/time/time.h"
10 #include "net/http/http_response_headers.h"
11 
12 namespace net {
13 
WebSocketHandshakeResponseInfo(const GURL & url,scoped_refptr<HttpResponseHeaders> headers,const IPEndPoint & remote_endpoint,base::Time response_time)14 WebSocketHandshakeResponseInfo::WebSocketHandshakeResponseInfo(
15     const GURL& url,
16     scoped_refptr<HttpResponseHeaders> headers,
17     const IPEndPoint& remote_endpoint,
18     base::Time response_time)
19     : url(url),
20       headers(std::move(headers)),
21       remote_endpoint(remote_endpoint),
22       response_time(response_time) {}
23 
24 WebSocketHandshakeResponseInfo::~WebSocketHandshakeResponseInfo() = default;
25 
26 }  // namespace net
27