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

Side by Side Diff: ios/net/cookies/cookie_creation_time_manager.mm

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/crnet/test/crnet_http_tests.mm ('k') | ios/net/cookies/cookie_creation_time_manager_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698