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.
5 #ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_RESPONSE_INFO_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_RESPONSE_INFO_H_
10 #include "base/memory/ref_counted.h"
11 #include "base/time/time.h"
12 #include "net/base/net_export.h"
17 class HttpResponseHeaders
;
19 struct NET_EXPORT WebSocketHandshakeResponseInfo
{
20 WebSocketHandshakeResponseInfo(const GURL
& url
,
22 const std::string
& status_text
,
23 scoped_refptr
<HttpResponseHeaders
> headers
,
24 base::Time response_time
);
25 ~WebSocketHandshakeResponseInfo();
31 std::string status_text
;
32 // HTTP response headers
33 scoped_refptr
<HttpResponseHeaders
> headers
;
34 // The time that this response arrived
35 base::Time response_time
;
38 DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeResponseInfo
);
43 #endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_RESPONSE_INFO_H_