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
3 // found in the LICENSE file.
5 #include "webkit/glue/webcookie.h"
7 #include "net/cookies/canonical_cookie.h"
9 namespace webkit_glue
{
11 WebCookie::WebCookie()
18 WebCookie::WebCookie(const net::CanonicalCookie
& c
)
23 expires(c
.ExpiryDate().ToDoubleT() * 1000),
24 http_only(c
.IsHttpOnly()),
26 session(!c
.IsPersistent()) {
29 WebCookie::WebCookie(const std::string
& name
, const std::string
& value
,
30 const std::string
& domain
, const std::string
& path
,
31 double expires
, bool http_only
, bool secure
, bool session
)
42 WebCookie::~WebCookie() {
45 } // namespace webkit_glue