summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_handshake_request_info.h
blob: e5ef3369b2abc822920f1d2ebf40f75de28c0b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_
#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_

#include <string>

#include "base/time/time.h"
#include "net/base/net_export.h"
#include "net/http/http_request_headers.h"
#include "url/gurl.h"

namespace net {

struct NET_EXPORT WebSocketHandshakeRequestInfo {
  WebSocketHandshakeRequestInfo(const GURL& url, base::Time request_time);
  ~WebSocketHandshakeRequestInfo();
  // The request URL
  GURL url;
  // HTTP request headers
  HttpRequestHeaders headers;
  // The time that this request is sent
  base::Time request_time;

 private:
  DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeRequestInfo);
};

}  // namespace net

#endif  // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_