summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_monster.h
diff options
context:
space:
mode:
authormkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 11:30:15 +0000
committermkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 11:30:15 +0000
commit9b464b9ca9cebbad516d537a742c2ea9c351a860 (patch)
tree89ed6c1451b2674d83d9802fd611b000b378426d /net/base/cookie_monster.h
parent9e5154ebd5a3d9bb06cbc8306a4fd555385cb967 (diff)
downloadchromium_src-9b464b9ca9cebbad516d537a742c2ea9c351a860.zip
chromium_src-9b464b9ca9cebbad516d537a742c2ea9c351a860.tar.gz
chromium_src-9b464b9ca9cebbad516d537a742c2ea9c351a860.tar.bz2
Cleanup: Standardizing argument order for CanonicalCookie constructors.
Also took the opportunity to clarify the flow of CreateMonsterFromStoreForGC by dropping one of the `for` loops. BUG=79723 TEST=Compile, run tests, hope nothing breaks. Review URL: http://codereview.chromium.org/6882007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster.h')
-rw-r--r--net/base/cookie_monster.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/net/base/cookie_monster.h b/net/base/cookie_monster.h
index 92cc4f8..e150e25 100644
--- a/net/base/cookie_monster.h
+++ b/net/base/cookie_monster.h
@@ -539,12 +539,12 @@ class CookieMonster::CanonicalCookie {
const std::string& value,
const std::string& domain,
const std::string& path,
- bool secure,
- bool httponly,
const base::Time& creation,
+ const base::Time& expiration,
const base::Time& last_access,
- bool has_expires,
- const base::Time& expires);
+ bool secure,
+ bool httponly,
+ bool has_expires);
// This constructor does canonicalization but not validation.
// The result of this constructor should not be relied on in contexts
@@ -558,11 +558,15 @@ class CookieMonster::CanonicalCookie {
// Creates a canonical cookie from unparsed attribute values.
// Canonicalizes and validates inputs. May return NULL if an attribute
// value is invalid.
- static CanonicalCookie* Create(
- const GURL& url, const std::string& name, const std::string& value,
- const std::string& domain, const std::string& path,
- const base::Time& creation_time, const base::Time& expiration_time,
- bool secure, bool http_only);
+ static CanonicalCookie* Create(const GURL& url,
+ const std::string& name,
+ const std::string& value,
+ const std::string& domain,
+ const std::string& path,
+ const base::Time& creation,
+ const base::Time& expiration,
+ bool secure,
+ bool http_only);
const std::string& Source() const { return source_; }
const std::string& Name() const { return name_; }
@@ -626,11 +630,11 @@ class CookieMonster::CanonicalCookie {
std::string domain_;
std::string path_;
base::Time creation_date_;
- base::Time last_access_date_;
base::Time expiry_date_;
- bool has_expires_;
+ base::Time last_access_date_;
bool secure_;
bool httponly_;
+ bool has_expires_;
};
class CookieMonster::Delegate