| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef IOS_CHROME_BROWSER_NET_COOKIE_UTIL_H_ | 5 #ifndef IOS_CHROME_BROWSER_NET_COOKIE_UTIL_H_ |
| 6 #define IOS_CHROME_BROWSER_NET_COOKIE_UTIL_H_ | 6 #define IOS_CHROME_BROWSER_NET_COOKIE_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "net/cookies/canonical_cookie.h" | 12 #include "net/cookies/canonical_cookie.h" |
| 13 | 13 |
| 14 namespace base { | |
| 15 class SequencedTaskRunner; | |
| 16 } | |
| 17 | |
| 18 namespace ios { | 14 namespace ios { |
| 19 class ChromeBrowserState; | 15 class ChromeBrowserState; |
| 20 } | 16 } |
| 21 | 17 |
| 22 namespace net { | 18 namespace net { |
| 23 class CookieCryptoDelegate; | 19 class CookieCryptoDelegate; |
| 24 class CookieStore; | 20 class CookieStore; |
| 25 } | 21 } |
| 26 | 22 |
| 27 namespace cookie_util { | 23 namespace cookie_util { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Current implementation returns true if the device has rebooted since the | 79 // Current implementation returns true if the device has rebooted since the |
| 84 // last time cookies have been cleared. | 80 // last time cookies have been cleared. |
| 85 bool ShouldClearSessionCookies(); | 81 bool ShouldClearSessionCookies(); |
| 86 | 82 |
| 87 // Clears the session cookies for |browser_state|. | 83 // Clears the session cookies for |browser_state|. |
| 88 void ClearSessionCookies(ios::ChromeBrowserState* browser_state); | 84 void ClearSessionCookies(ios::ChromeBrowserState* browser_state); |
| 89 | 85 |
| 90 } // namespace cookie_util | 86 } // namespace cookie_util |
| 91 | 87 |
| 92 #endif // IOS_CHROME_BROWSER_NET_COOKIE_UTIL_H_ | 88 #endif // IOS_CHROME_BROWSER_NET_COOKIE_UTIL_H_ |
| OLD | NEW |