OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef IOS_NET_COOKIES_SYSTEM_COOKIE_UTIL_H_ | 5 #ifndef IOS_NET_COOKIES_SYSTEM_COOKIE_UTIL_H_ |
6 #define IOS_NET_COOKIES_SYSTEM_COOKIE_UTIL_H_ | 6 #define IOS_NET_COOKIES_SYSTEM_COOKIE_UTIL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "net/cookies/canonical_cookie.h" | 10 #include "net/cookies/canonical_cookie.h" |
9 | 11 |
10 #if defined(__OBJC__) | 12 #if defined(__OBJC__) |
11 @class NSHTTPCookie; | 13 @class NSHTTPCookie; |
12 #else | 14 #else |
13 class NSHTTPCookie; | 15 class NSHTTPCookie; |
14 #endif | 16 #endif |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 class Time; | 19 class Time; |
(...skipping 17 matching lines...) Expand all Loading... |
35 | 37 |
36 // Report metrics if the number of cookies drops unexpectedly. | 38 // Report metrics if the number of cookies drops unexpectedly. |
37 void CheckForCookieLoss(size_t cookie_count, CookieEvent event); | 39 void CheckForCookieLoss(size_t cookie_count, CookieEvent event); |
38 | 40 |
39 // Reset the cookie count internally used by the CheckForCookieLoss() function. | 41 // Reset the cookie count internally used by the CheckForCookieLoss() function. |
40 void ResetCookieCountMetrics(); | 42 void ResetCookieCountMetrics(); |
41 | 43 |
42 } // namespace net | 44 } // namespace net |
43 | 45 |
44 #endif // IOS_NET_COOKIES_SYSTEM_COOKIE_UTIL_H_ | 46 #endif // IOS_NET_COOKIES_SYSTEM_COOKIE_UTIL_H_ |
OLD | NEW |