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

Side by Side Diff: net/base/cookie_monster.cc

Issue 7633055: base: Fix the TODO in string_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chrome_mini_installer.cc Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/sandbox_mac.mm ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/common/sandbox_mac.mm ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698