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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "net/base/net_util.h" 56 #include "net/base/net_util.h"
57 #include "net/base/registry_controlled_domain.h" 57 #include "net/base/registry_controlled_domain.h"
58 58
59 // #define COOKIE_LOGGING_ENABLED 59 // #define COOKIE_LOGGING_ENABLED
60 #ifdef COOKIE_LOGGING_ENABLED 60 #ifdef COOKIE_LOGGING_ENABLED
61 #define COOKIE_DLOG(severity) DLOG_IF(INFO, 1) 61 #define COOKIE_DLOG(severity) DLOG_IF(INFO, 1)
62 #else 62 #else
63 #define COOKIE_DLOG(severity) DLOG_IF(INFO, 0) 63 #define COOKIE_DLOG(severity) DLOG_IF(INFO, 0)
64 #endif 64 #endif
65 65
66 using base::Time;
67 using base::TimeDelta;
68
66 namespace net { 69 namespace net {
67 70
68 // static 71 // static
69 bool CookieMonster::enable_file_scheme_ = false; 72 bool CookieMonster::enable_file_scheme_ = false;
70 73
71 // static 74 // static
72 void CookieMonster::EnableFileScheme() { 75 void CookieMonster::EnableFileScheme() {
73 enable_file_scheme_ = true; 76 enable_file_scheme_ = true;
74 } 77 }
75 78
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 } 1029 }
1027 1030
1028 std::string CookieMonster::CanonicalCookie::DebugString() const { 1031 std::string CookieMonster::CanonicalCookie::DebugString() const {
1029 return StringPrintf("name: %s value: %s path: %s creation: %llu", 1032 return StringPrintf("name: %s value: %s path: %s creation: %llu",
1030 name_.c_str(), value_.c_str(), path_.c_str(), 1033 name_.c_str(), value_.c_str(), path_.c_str(),
1031 creation_date_.ToTimeT()); 1034 creation_date_.ToTimeT());
1032 } 1035 }
1033 1036
1034 } // namespace 1037 } // namespace
1035 1038
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698