Index: net/cookies/canonical_cookie.cc |
=================================================================== |
--- net/cookies/canonical_cookie.cc (revision 265252) |
+++ net/cookies/canonical_cookie.cc (working copy) |
@@ -394,4 +394,20 @@ |
static_cast<int64>(creation_date_.ToTimeT())); |
} |
+CanonicalCookie* CanonicalCookie::Duplicate() { |
Charlie Reis
2014/05/07 17:21:32
This looks like it will quickly get stale if more
tburkard
2014/05/07 18:34:27
Done.
|
+ CanonicalCookie* cc = new CanonicalCookie(); |
+ cc->source_ = source_; |
+ cc->name_ = name_; |
+ cc->value_ = value_; |
+ cc->domain_ = domain_; |
+ cc->path_ = path_; |
+ cc->creation_date_ = creation_date_; |
+ cc->expiry_date_ = expiry_date_; |
+ cc->last_access_date_ = last_access_date_; |
+ cc->secure_ = secure_; |
+ cc->httponly_ = httponly_; |
+ cc->priority_ = priority_; |
+ return cc; |
+} |
+ |
} // namespace net |