OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A struct for managing data being dropped on a webview. This represents a | 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 | 6 // union of all the types of data that can be dropped in a platform neutral |
7 // way. | 7 // way. |
8 | 8 |
9 #ifndef WEBKIT_GLUE_WEBCOOKIE_H_ | 9 #ifndef WEBKIT_GLUE_WEBCOOKIE_H_ |
10 #define WEBKIT_GLUE_WEBCOOKIE_H_ | 10 #define WEBKIT_GLUE_WEBCOOKIE_H_ |
11 | 11 |
12 #include "net/base/cookie_monster.h" | 12 #include "net/base/cookie_monster.h" |
| 13 #include "webkit/glue/webkit_glue_export.h" |
13 | 14 |
14 namespace webkit_glue { | 15 namespace webkit_glue { |
15 | 16 |
16 struct WebCookie { | 17 struct WEBKIT_GLUE_EXPORT WebCookie { |
17 WebCookie(); | 18 WebCookie(); |
18 explicit WebCookie(const net::CookieMonster::CanonicalCookie& c); | 19 explicit WebCookie(const net::CookieMonster::CanonicalCookie& c); |
19 WebCookie(const std::string& name, const std::string& value, | 20 WebCookie(const std::string& name, const std::string& value, |
20 const std::string& domain, const std::string& path, double expires, | 21 const std::string& domain, const std::string& path, double expires, |
21 bool http_only, bool secure, bool session); | 22 bool http_only, bool secure, bool session); |
22 ~WebCookie(); | 23 ~WebCookie(); |
23 | 24 |
24 // Cookie name. | 25 // Cookie name. |
25 std::string name; | 26 std::string name; |
26 | 27 |
(...skipping 15 matching lines...) Expand all Loading... |
42 // Cookie secure param. | 43 // Cookie secure param. |
43 bool secure; | 44 bool secure; |
44 | 45 |
45 // Session cookie flag. | 46 // Session cookie flag. |
46 bool session; | 47 bool session; |
47 }; | 48 }; |
48 | 49 |
49 } // namespace webkit_glue | 50 } // namespace webkit_glue |
50 | 51 |
51 #endif // WEBKIT_GLUE_WEBCOOKIE_H_ | 52 #endif // WEBKIT_GLUE_WEBCOOKIE_H_ |
OLD | NEW |