| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HTTP_CACHE_HELPER_H_ | 5 #ifndef IOS_NET_HTTP_CACHE_HELPER_H_ |
| 6 #define IOS_NET_HTTP_CACHE_HELPER_H_ | 6 #define IOS_NET_HTTP_CACHE_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class TaskRunner; | 13 class TaskRunner; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
| 18 | 18 |
| 19 // Clears the HTTP cache and calls |closure| back. | 19 // Clears the HTTP cache and calls |closure| back. |
| 20 void ClearHttpCache(const scoped_refptr<net::URLRequestContextGetter>& getter, | 20 void ClearHttpCache(const scoped_refptr<net::URLRequestContextGetter>& getter, |
| 21 const scoped_refptr<base::TaskRunner>& network_task_runner, | 21 const scoped_refptr<base::TaskRunner>& network_task_runner, |
| 22 const base::Time& delete_begin, |
| 23 const base::Time& delete_end, |
| 22 const net::CompletionCallback& callback); | 24 const net::CompletionCallback& callback); |
| 23 | 25 |
| 24 } // namespace net | 26 } // namespace net |
| 25 | 27 |
| 26 #endif // IOS_NET_HTTP_CACHE_HELPER_H_ | 28 #endif // IOS_NET_HTTP_CACHE_HELPER_H_ |
| OLD | NEW |