diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 21:25:25 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 21:25:25 +0000 |
commit | 11b9a3b34801022a851e230088ecb4a9070982c7 (patch) | |
tree | 2a66e896bcc0f6c909aa3a8bce4fcf977be16e90 /webkit/glue | |
parent | e9a779fdf629d6b0370da06bbb6614c59147d158 (diff) | |
download | chromium_src-11b9a3b34801022a851e230088ecb4a9070982c7.zip chromium_src-11b9a3b34801022a851e230088ecb4a9070982c7.tar.gz chromium_src-11b9a3b34801022a851e230088ecb4a9070982c7.tar.bz2 |
Move webkit/glue/webcookie.{h,cc} to content/common/cookie_data.{h,cc}.
R=cevans@chromium.org, michaeln@chromium.org
Review URL: https://codereview.chromium.org/17484002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/webcookie.cc | 45 | ||||
-rw-r--r-- | webkit/glue/webcookie.h | 57 | ||||
-rw-r--r-- | webkit/glue/webkit_glue.gypi | 2 |
3 files changed, 0 insertions, 104 deletions
diff --git a/webkit/glue/webcookie.cc b/webkit/glue/webcookie.cc deleted file mode 100644 index e5af921..0000000 --- a/webkit/glue/webcookie.cc +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "webkit/glue/webcookie.h" - -#include "net/cookies/canonical_cookie.h" - -namespace webkit_glue { - -WebCookie::WebCookie() - : expires(0), - http_only(false), - secure(false), - session(false) { -} - -WebCookie::WebCookie(const net::CanonicalCookie& c) - : name(c.Name()), - value(c.Value()), - domain(c.Domain()), - path(c.Path()), - expires(c.ExpiryDate().ToDoubleT() * 1000), - http_only(c.IsHttpOnly()), - secure(c.IsSecure()), - session(!c.IsPersistent()) { -} - -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::~WebCookie() { -} - -} // namespace webkit_glue diff --git a/webkit/glue/webcookie.h b/webkit/glue/webcookie.h deleted file mode 100644 index 4d3d244..0000000 --- a/webkit/glue/webcookie.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// -// A struct for managing data being dropped on a webview. This represents a -// union of all the types of data that can be dropped in a platform neutral -// way. - -#ifndef WEBKIT_GLUE_WEBCOOKIE_H_ -#define WEBKIT_GLUE_WEBCOOKIE_H_ - -#include <string> - -#include "webkit/glue/webkit_glue_export.h" - -namespace net { -class CanonicalCookie; -} - -namespace webkit_glue { - -struct WEBKIT_GLUE_EXPORT WebCookie { - WebCookie(); - explicit WebCookie(const net::CanonicalCookie& c); - 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); - ~WebCookie(); - - // Cookie name. - std::string name; - - // Cookie value. - std::string value; - - // Cookie domain. - std::string domain; - - // Cookie path. - std::string path; - - // Cookie expires param if any. - double expires; - - // Cookie HTTPOnly param. - bool http_only; - - // Cookie secure param. - bool secure; - - // Session cookie flag. - bool session; -}; - -} // namespace webkit_glue - -#endif // WEBKIT_GLUE_WEBCOOKIE_H_ diff --git a/webkit/glue/webkit_glue.gypi b/webkit/glue/webkit_glue.gypi index f37c469..bcfc8cd 100644 --- a/webkit/glue/webkit_glue.gypi +++ b/webkit/glue/webkit_glue.gypi @@ -291,8 +291,6 @@ 'simple_webmimeregistry_impl.h', 'webclipboard_impl.cc', 'webclipboard_impl.h', - 'webcookie.cc', - 'webcookie.h', 'webfileutilities_impl.cc', 'webfileutilities_impl.h', 'webkit_glue.cc', |