Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: webkit/glue/webcookie.cc

Issue 3219002: FBTF: Move code from headers into cc files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 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.
4
5 #include "webkit/glue/webcookie.h"
6
7 namespace webkit_glue {
8
9 WebCookie::WebCookie()
10 : expires(0),
11 http_only(false),
12 secure(false),
13 session(false) {
14 }
15
16 WebCookie::WebCookie(const net::CookieMonster::CanonicalCookie& c)
17 : name(c.Name()),
18 value(c.Value()),
19 domain(c.Domain()),
20 path(c.Path()),
21 expires(c.ExpiryDate().ToDoubleT() * 1000),
22 http_only(c.IsHttpOnly()),
23 secure(c.IsSecure()),
24 session(!c.IsPersistent()) {
25 }
26
27 WebCookie::WebCookie(const std::string& name, const std::string& value,
28 const std::string& domain, const std::string& path,
29 double expires, bool http_only, bool secure, bool session)
30 : name(name),
31 value(value),
32 domain(domain),
33 path(path),
34 expires(expires),
35 http_only(http_only),
36 secure(secure),
37 session(session) {
38 }
39
40 WebCookie::~WebCookie() {
41 }
42
43 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698