• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2006-2008 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 // A struct for managing data being dropped on a webview.  This represents a
6 // union of all the types of data that can be dropped in a platform neutral
7 // way.
8 
9 #ifndef WEBKIT_GLUE_WEBCOOKIE_H_
10 #define WEBKIT_GLUE_WEBCOOKIE_H_
11 
12 #include "net/base/cookie_monster.h"
13 
14 namespace webkit_glue {
15 
16 struct WebCookie {
17   WebCookie();
18   explicit WebCookie(const net::CookieMonster::CanonicalCookie& c);
19   WebCookie(const std::string& name, const std::string& value,
20             const std::string& domain, const std::string& path, double expires,
21             bool http_only, bool secure, bool session);
22   ~WebCookie();
23 
24   // Cookie name.
25   std::string name;
26 
27   // Cookie value.
28   std::string value;
29 
30   // Cookie domain.
31   std::string domain;
32 
33   // Cookie path.
34   std::string path;
35 
36   // Cookie expires param if any.
37   double expires;
38 
39   // Cookie HTTPOnly param.
40   bool http_only;
41 
42   // Cookie secure param.
43   bool secure;
44 
45   // Session cookie flag.
46   bool session;
47 };
48 
49 }  // namespace webkit_glue
50 
51 #endif  // WEBKIT_GLUE_WEBCOOKIE_H_
52