PepperVideoDestinationHost: Check that recieved frames have strictly increasing times...
[chromium-blink-merge.git] / content / common / cookie_data.cc
blob3a6980bbdea1da9c21f323fbe4cc108c98566b32
1 // Copyright (c) 2013 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 "content/common/cookie_data.h"
7 #include "net/cookies/canonical_cookie.h"
9 namespace content {
11 CookieData::CookieData()
12 : expires(0),
13 http_only(false),
14 secure(false),
15 session(false) {
18 CookieData::CookieData(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 CookieData::~CookieData() {
32 } // namespace content