summaryrefslogtreecommitdiff
path: root/chromium/content/common/cookie_data.h
blob: 21dd022778c599f46d9574c9f589e2fd2b421a65 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) 2013 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 CONTENT_COMMON_COOKIE_DATA_H_
#define CONTENT_COMMON_COOKIE_DATA_H_

#include <string>

#include "content/common/content_export.h"

namespace net {
class CanonicalCookie;
}

namespace content {

struct CONTENT_EXPORT CookieData {
  CookieData();
  explicit CookieData(const net::CanonicalCookie& c);
  ~CookieData();

  // Cookie name.
  std::string name;

  // Cookie value.
  std::string value;

  // Cookie domain.
  std::string domain;

  // Cookie path.
  std::string path;

  // Cookie expires param if any.
  double expires;

  // Cookie HTTPOnly param.
  bool http_only;

  // Cookie secure param.
  bool secure;

  // Session cookie flag.
  bool session;
};

}  // namespace content

#endif  // CONTENT_COMMON_COOKIE_DATA_H_