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. 4 5 #ifndef CONTENT_COMMON_COOKIE_DATA_H_ 6 #define CONTENT_COMMON_COOKIE_DATA_H_ 7 8 #include <string> 9 10 #include "content/common/content_export.h" 11 12 namespace net { 13 class CanonicalCookie; 14 } 15 16 namespace content { 17 18 struct CONTENT_EXPORT CookieData { 19 CookieData(); 20 explicit CookieData(const net::CanonicalCookie& c); 21 ~CookieData(); 22 23 // Cookie name. 24 std::string name; 25 26 // Cookie value. 27 std::string value; 28 29 // Cookie domain. 30 std::string domain; 31 32 // Cookie path. 33 std::string path; 34 35 // Cookie expires param if any. 36 double expires; 37 38 // Cookie HTTPOnly param. 39 bool http_only; 40 41 // Cookie secure param. 42 bool secure; 43 44 // Session cookie flag. 45 bool session; 46 }; 47 48 } // namespace content 49 50 #endif // CONTENT_COMMON_COOKIE_DATA_H_ 51