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 #include "ios/net/cookies/cookie_creation_time_manager.h" | 5 #include "ios/net/cookies/cookie_creation_time_manager.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #include <Foundation/Foundation.h> |
| 8 #include <stddef.h> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
12 | 13 |
13 // Key holding the creation-time in NSHTTPCookie properties. | 14 // Key holding the creation-time in NSHTTPCookie properties. |
14 // This key is undocumented, and its value has type NSNumber. | 15 // This key is undocumented, and its value has type NSNumber. |
15 NSString* const kHTTPCookieCreated = @"Created"; | 16 NSString* const kHTTPCookieCreated = @"Created"; |
16 | 17 |
17 namespace { | 18 namespace { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 112 } |
112 } | 113 } |
113 | 114 |
114 void CookieCreationTimeManager::Clear() { | 115 void CookieCreationTimeManager::Clear() { |
115 DCHECK(thread_checker_.CalledOnValidThread()); | 116 DCHECK(thread_checker_.CalledOnValidThread()); |
116 creation_times_.clear(); | 117 creation_times_.clear(); |
117 unique_times_.clear(); | 118 unique_times_.clear(); |
118 } | 119 } |
119 | 120 |
120 } // namespace net | 121 } // namespace net |
OLD | NEW |