diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 16:07:21 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 16:07:21 +0000 |
commit | 971713ef6b3cb00c871a3420b890c0feeb80d605 (patch) | |
tree | 0df6925f83f162737a2b7813a5e19e7a6b8f228a /webkit/glue/webcookie.h | |
parent | 2add77b802f0f5cab795a0a4d9ecb48003447d51 (diff) | |
download | chromium_src-971713ef6b3cb00c871a3420b890c0feeb80d605.zip chromium_src-971713ef6b3cb00c871a3420b890c0feeb80d605.tar.gz chromium_src-971713ef6b3cb00c871a3420b890c0feeb80d605.tar.bz2 |
DevTools: Implement raw cookies access for inspector.
Review URL: http://codereview.chromium.org/294025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcookie.h')
-rw-r--r-- | webkit/glue/webcookie.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/webkit/glue/webcookie.h b/webkit/glue/webcookie.h new file mode 100644 index 0000000..4966c442 --- /dev/null +++ b/webkit/glue/webcookie.h @@ -0,0 +1,66 @@ +// Copyright (c) 2006-2008 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> + +namespace webkit_glue { + +struct 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) { + } + + // For default constructions. + WebCookie() : + expires(0), + http_only(false), + secure(false), + session(false) { + } + + // 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_ |