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

Unified Diff: net/cookies/canonical_cookie.h

Issue 233353003: Only commit cookie changes in prerenders after a prerender is shown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync @269781 + 'autlock'->'autolock' from erik's comment that was not included before Created 6 years, 7 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/public/browser/content_browser_client.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
===================================================================
--- net/cookies/canonical_cookie.h (revision 269781)
+++ net/cookies/canonical_cookie.h (working copy)
@@ -125,6 +125,9 @@
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 @@
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 @@
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;
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698