Index: net/cookies/parsed_cookie.h |
diff --git a/net/cookies/parsed_cookie.h b/net/cookies/parsed_cookie.h |
index 43afa4b284769291739f0e0b6540ee2a8f01e0c8..93b2c23853b1cfda6c46fa091c804c5dc015e8fe 100644 |
--- a/net/cookies/parsed_cookie.h |
+++ b/net/cookies/parsed_cookie.h |
@@ -10,6 +10,7 @@ |
#include "base/basictypes.h" |
#include "net/base/net_export.h" |
+#include "net/cookies/cookie_constants.h" |
namespace net { |
@@ -45,6 +46,7 @@ class NET_EXPORT ParsedCookie { |
const std::string& MaxAge() const { return pairs_[maxage_index_].second; } |
bool IsSecure() const { return secure_index_ != 0; } |
bool IsHttpOnly() const { return httponly_index_ != 0; } |
+ CookiePriority Priority() const; |
// Returns the number of attributes, for example, returning 2 for: |
// "BLAH=hah; path=/; domain=.google.com" |
@@ -63,6 +65,7 @@ class NET_EXPORT ParsedCookie { |
bool SetMaxAge(const std::string& maxage); |
bool SetIsSecure(bool is_secure); |
bool SetIsHttpOnly(bool is_http_only); |
+ bool SetPriority(const std::string& priority); |
// Returns the cookie description as it appears in a HTML response header. |
std::string ToCookieLine() const; |
@@ -134,6 +137,7 @@ class NET_EXPORT ParsedCookie { |
size_t maxage_index_; |
size_t secure_index_; |
size_t httponly_index_; |
+ size_t priority_index_; |
DISALLOW_COPY_AND_ASSIGN(ParsedCookie); |
}; |