summaryrefslogtreecommitdiffstats
path: root/chromium/net/cookies/canonical_cookie.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/cookies/canonical_cookie.h')
-rw-r--r--chromium/net/cookies/canonical_cookie.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/net/cookies/canonical_cookie.h b/chromium/net/cookies/canonical_cookie.h
index a78eece4198..a5567405242 100644
--- a/chromium/net/cookies/canonical_cookie.h
+++ b/chromium/net/cookies/canonical_cookie.h
@@ -125,6 +125,9 @@ class NET_EXPORT CanonicalCookie {
std::string DebugString() const;
+ // Returns a duplicate of this cookie.
+ CanonicalCookie* Duplicate();
+
// Returns the cookie source when cookies are set for |url|. This function
// is public for unit test purposes only.
static std::string GetCookieSourceFromURL(const GURL& url);
@@ -134,6 +137,9 @@ class NET_EXPORT CanonicalCookie {
const base::Time& server_time);
private:
+ // NOTE: When any new members are added below, the implementation of
+ // Duplicate() must be updated to copy the new member accordingly.
+
// The source member of a canonical cookie is the origin of the URL that tried
// to set this cookie, minus the port number if any. This field is not
// persistent though; its only used in the in-tab cookies dialog to show the
@@ -153,6 +159,9 @@ class NET_EXPORT CanonicalCookie {
bool secure_;
bool httponly_;
CookiePriority priority_;
+ // NOTE: When any new members are added above this comment, the
+ // implementation of Duplicate() must be updated to copy the new member
+ // accordingly.
};
typedef std::vector<CanonicalCookie> CookieList;