| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 30 matching lines...) Expand all Loading... |
| 41 * the terms of any one of the MPL, the GPL or the LGPL. | 41 * the terms of any one of the MPL, the GPL or the LGPL. |
| 42 * | 42 * |
| 43 * ***** END LICENSE BLOCK ***** */ | 43 * ***** END LICENSE BLOCK ***** */ |
| 44 | 44 |
| 45 #include "net/cookies/canonical_cookie.h" | 45 #include "net/cookies/canonical_cookie.h" |
| 46 | 46 |
| 47 #include "base/basictypes.h" | 47 #include "base/basictypes.h" |
| 48 #include "base/format_macros.h" | 48 #include "base/format_macros.h" |
| 49 #include "base/logging.h" | 49 #include "base/logging.h" |
| 50 #include "base/strings/stringprintf.h" | 50 #include "base/strings/stringprintf.h" |
| 51 #include "googleurl/src/gurl.h" | |
| 52 #include "googleurl/src/url_canon.h" | |
| 53 #include "net/cookies/cookie_util.h" | 51 #include "net/cookies/cookie_util.h" |
| 54 #include "net/cookies/parsed_cookie.h" | 52 #include "net/cookies/parsed_cookie.h" |
| 53 #include "url/gurl.h" |
| 54 #include "url/url_canon.h" |
| 55 | 55 |
| 56 using base::Time; | 56 using base::Time; |
| 57 using base::TimeDelta; | 57 using base::TimeDelta; |
| 58 | 58 |
| 59 namespace net { | 59 namespace net { |
| 60 | 60 |
| 61 namespace { | 61 namespace { |
| 62 | 62 |
| 63 const int kVlogSetCookies = 7; | 63 const int kVlogSetCookies = 7; |
| 64 | 64 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 std::string CanonicalCookie::DebugString() const { | 388 std::string CanonicalCookie::DebugString() const { |
| 389 return base::StringPrintf( | 389 return base::StringPrintf( |
| 390 "name: %s value: %s domain: %s path: %s creation: %" | 390 "name: %s value: %s domain: %s path: %s creation: %" |
| 391 PRId64, | 391 PRId64, |
| 392 name_.c_str(), value_.c_str(), | 392 name_.c_str(), value_.c_str(), |
| 393 domain_.c_str(), path_.c_str(), | 393 domain_.c_str(), path_.c_str(), |
| 394 static_cast<int64>(creation_date_.ToTimeT())); | 394 static_cast<int64>(creation_date_.ToTimeT())); |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace net | 397 } // namespace net |
| OLD | NEW |