Removing flow to demote App Launcher to App Host, so app_host.exe can be deleted...
[chromium-blink-merge.git] / webkit / glue / webcookie.cc
blobe5af92113d18fdfb42ad46d6271d94d6622a50df
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()
12 : expires(0),
13 http_only(false),
14 secure(false),
15 session(false) {
18 WebCookie::WebCookie(const net::CanonicalCookie& c)
19 : name(c.Name()),
20 value(c.Value()),
21 domain(c.Domain()),
22 path(c.Path()),
23 expires(c.ExpiryDate().ToDoubleT() * 1000),
24 http_only(c.IsHttpOnly()),
25 secure(c.IsSecure()),
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)
32 : name(name),
33 value(value),
34 domain(domain),
35 path(path),
36 expires(expires),
37 http_only(http_only),
38 secure(secure),
39 session(session) {
42 WebCookie::~WebCookie() {
45 } // namespace webkit_glue