diff options
Diffstat (limited to 'net/base/cookie_monster.h')
-rw-r--r-- | net/base/cookie_monster.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/cookie_monster.h b/net/base/cookie_monster.h index fef0e8f..c9e48d7 100644 --- a/net/base/cookie_monster.h +++ b/net/base/cookie_monster.h @@ -265,6 +265,10 @@ class CookieMonster::ParsedCookie { bool IsSecure() const { return secure_index_ != 0; } bool IsHttpOnly() const { return httponly_index_ != 0; } + // Return the number of attributes, for example, returning 2 for: + // "BLAH=hah; path=/; domain=.google.com" + size_t NumberOfAttributes() const { return pairs_.size() - 1; } + // For debugging only! std::string DebugString() const; |