OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Portions of this code based on Mozilla: | 5 // Portions of this code based on Mozilla: |
6 // (netwerk/cookie/src/nsCookieService.cpp) | 6 // (netwerk/cookie/src/nsCookieService.cpp) |
7 /* ***** BEGIN LICENSE BLOCK ***** | 7 /* ***** BEGIN LICENSE BLOCK ***** |
8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
9 * | 9 * |
10 * The contents of this file are subject to the Mozilla Public License Version | 10 * The contents of this file are subject to the Mozilla Public License Version |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include <set> | 48 #include <set> |
49 | 49 |
50 #include "base/basictypes.h" | 50 #include "base/basictypes.h" |
51 #include "base/format_macros.h" | 51 #include "base/format_macros.h" |
52 #include "base/logging.h" | 52 #include "base/logging.h" |
53 #include "base/memory/scoped_ptr.h" | 53 #include "base/memory/scoped_ptr.h" |
54 #include "base/message_loop.h" | 54 #include "base/message_loop.h" |
55 #include "base/metrics/histogram.h" | 55 #include "base/metrics/histogram.h" |
56 #include "base/string_tokenizer.h" | 56 #include "base/string_tokenizer.h" |
57 #include "base/string_util.h" | 57 #include "base/string_util.h" |
| 58 #include "base/stringprintf.h" |
58 #include "googleurl/src/gurl.h" | 59 #include "googleurl/src/gurl.h" |
59 #include "googleurl/src/url_canon.h" | 60 #include "googleurl/src/url_canon.h" |
60 #include "net/base/net_util.h" | 61 #include "net/base/net_util.h" |
61 #include "net/base/registry_controlled_domain.h" | 62 #include "net/base/registry_controlled_domain.h" |
62 | 63 |
63 using base::Time; | 64 using base::Time; |
64 using base::TimeDelta; | 65 using base::TimeDelta; |
65 using base::TimeTicks; | 66 using base::TimeTicks; |
66 | 67 |
67 static const int kMinutesInTenYears = 10 * 365 * 24 * 60; | 68 static const int kMinutesInTenYears = 10 * 365 * 24 * 60; |
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2299 std::string CookieMonster::CanonicalCookie::DebugString() const { | 2300 std::string CookieMonster::CanonicalCookie::DebugString() const { |
2300 return base::StringPrintf( | 2301 return base::StringPrintf( |
2301 "name: %s value: %s domain: %s path: %s creation: %" | 2302 "name: %s value: %s domain: %s path: %s creation: %" |
2302 PRId64, | 2303 PRId64, |
2303 name_.c_str(), value_.c_str(), | 2304 name_.c_str(), value_.c_str(), |
2304 domain_.c_str(), path_.c_str(), | 2305 domain_.c_str(), path_.c_str(), |
2305 static_cast<int64>(creation_date_.ToTimeT())); | 2306 static_cast<int64>(creation_date_.ToTimeT())); |
2306 } | 2307 } |
2307 | 2308 |
2308 } // namespace | 2309 } // namespace |
OLD | NEW |