http_cache_helper.h 892 B

1234567891011121314151617181920212223242526272829
  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
  3. // found in the LICENSE file.
  4. #ifndef IOS_NET_HTTP_CACHE_HELPER_H_
  5. #define IOS_NET_HTTP_CACHE_HELPER_H_
  6. #include "base/callback_forward.h"
  7. #include "base/memory/ref_counted.h"
  8. #include "net/base/completion_once_callback.h"
  9. namespace base {
  10. class TaskRunner;
  11. class Time;
  12. }
  13. namespace net {
  14. class URLRequestContextGetter;
  15. // Clears the HTTP cache and calls |closure| back.
  16. void ClearHttpCache(const scoped_refptr<net::URLRequestContextGetter>& getter,
  17. const scoped_refptr<base::TaskRunner>& network_task_runner,
  18. const base::Time& delete_begin,
  19. const base::Time& delete_end,
  20. net::CompletionOnceCallback callback);
  21. } // namespace net
  22. #endif // IOS_NET_HTTP_CACHE_HELPER_H_