OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/cookies/cookie_monster.h" | 12 #include <string> |
| 13 |
13 #include "webkit/glue/webkit_glue_export.h" | 14 #include "webkit/glue/webkit_glue_export.h" |
14 | 15 |
| 16 namespace net { |
| 17 class CanonicalCookie; |
| 18 } |
| 19 |
15 namespace webkit_glue { | 20 namespace webkit_glue { |
16 | 21 |
17 struct WEBKIT_GLUE_EXPORT WebCookie { | 22 struct WEBKIT_GLUE_EXPORT WebCookie { |
18 WebCookie(); | 23 WebCookie(); |
19 explicit WebCookie(const net::CookieMonster::CanonicalCookie& c); | 24 explicit WebCookie(const net::CanonicalCookie& c); |
20 WebCookie(const std::string& name, const std::string& value, | 25 WebCookie(const std::string& name, const std::string& value, |
21 const std::string& domain, const std::string& path, double expires, | 26 const std::string& domain, const std::string& path, double expires, |
22 bool http_only, bool secure, bool session); | 27 bool http_only, bool secure, bool session); |
23 ~WebCookie(); | 28 ~WebCookie(); |
24 | 29 |
25 // Cookie name. | 30 // Cookie name. |
26 std::string name; | 31 std::string name; |
27 | 32 |
28 // Cookie value. | 33 // Cookie value. |
29 std::string value; | 34 std::string value; |
(...skipping 13 matching lines...) Expand all Loading... |
43 // Cookie secure param. | 48 // Cookie secure param. |
44 bool secure; | 49 bool secure; |
45 | 50 |
46 // Session cookie flag. | 51 // Session cookie flag. |
47 bool session; | 52 bool session; |
48 }; | 53 }; |
49 | 54 |
50 } // namespace webkit_glue | 55 } // namespace webkit_glue |
51 | 56 |
52 #endif // WEBKIT_GLUE_WEBCOOKIE_H_ | 57 #endif // WEBKIT_GLUE_WEBCOOKIE_H_ |
OLD | NEW |