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

Unified Diff: net/cookies/canonical_cookie.h

Issue 14113014: Adding Priority field to cookies. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed enums PRIORITY_* to COOKIE_PRIORITY_*. Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/net/sqlite_persistent_cookie_store_unittest.cc ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/canonical_cookie.h
diff --git a/net/cookies/canonical_cookie.h b/net/cookies/canonical_cookie.h
index 6c9a222805b47e435dc93f075756cc449920c5f4..341f58b13223fc1f1c3c97cdf1bf96a661ab436f 100644
--- a/net/cookies/canonical_cookie.h
+++ b/net/cookies/canonical_cookie.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/time.h"
#include "net/base/net_export.h"
+#include "net/cookies/cookie_constants.h"
#include "net/cookies/cookie_options.h"
class GURL;
@@ -35,7 +36,8 @@ class NET_EXPORT CanonicalCookie {
const base::Time& expiration,
const base::Time& last_access,
bool secure,
- bool httponly);
+ bool httponly,
+ CookiePriority priority);
// This constructor does canonicalization but not validation.
// The result of this constructor should not be relied on in contexts
@@ -65,7 +67,8 @@ class NET_EXPORT CanonicalCookie {
const base::Time& creation,
const base::Time& expiration,
bool secure,
- bool http_only);
+ bool http_only,
+ CookiePriority priority);
const std::string& Source() const { return source_; }
const std::string& Name() const { return name_; }
@@ -78,6 +81,7 @@ class NET_EXPORT CanonicalCookie {
const base::Time& ExpiryDate() const { return expiry_date_; }
bool IsSecure() const { return secure_; }
bool IsHttpOnly() const { return httponly_; }
+ CookiePriority Priority() const { return priority_; }
bool IsDomainCookie() const {
return !domain_.empty() && domain_[0] == '.'; }
bool IsHostCookie() const { return !IsDomainCookie(); }
@@ -148,6 +152,7 @@ class NET_EXPORT CanonicalCookie {
base::Time last_access_date_;
bool secure_;
bool httponly_;
+ CookiePriority priority_;
};
typedef std::vector<CanonicalCookie> CookieList;
« no previous file with comments | « content/browser/net/sqlite_persistent_cookie_store_unittest.cc ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698