diff options
Diffstat (limited to 'webkit/glue/webcookie.h')
-rw-r--r-- | webkit/glue/webcookie.h | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/webkit/glue/webcookie.h b/webkit/glue/webcookie.h index 2feb800..4966c442 100644 --- a/webkit/glue/webcookie.h +++ b/webkit/glue/webcookie.h @@ -9,7 +9,7 @@ #ifndef WEBKIT_GLUE_WEBCOOKIE_H_ #define WEBKIT_GLUE_WEBCOOKIE_H_ -#include "net/base/cookie_monster.h" +#include <string> namespace webkit_glue { @@ -18,34 +18,22 @@ struct WebCookie { WebCookie(const std::string& name, const std::string& value, const std::string& domain, const std::string& path, double expires, bool http_only, bool secure, bool session) - : name(name), - value(value), - domain(domain), - path(path), - expires(expires), - http_only(http_only), - secure(secure), - session(session) { - } - - WebCookie(const std::string& domain, - const net::CookieMonster::CanonicalCookie& c) - : name(c.Name()), - value(c.Value()), - domain(domain), - path(c.Path()), - expires(c.ExpiryDate().ToDoubleT() * 1000), - http_only(c.IsHttpOnly()), - secure(c.IsSecure()), - session(!c.IsPersistent()) { + : name(name), + value(value), + domain(domain), + path(path), + expires(expires), + http_only(http_only), + secure(secure), + session(session) { } // For default constructions. - WebCookie() - : expires(0), - http_only(false), - secure(false), - session(false) { + WebCookie() : + expires(0), + http_only(false), + secure(false), + session(false) { } // Cookie name. |