forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp_cache_helper.h
29 lines (22 loc) · 892 Bytes
/
http_cache_helper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_NET_HTTP_CACHE_HELPER_H_
#define IOS_NET_HTTP_CACHE_HELPER_H_
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "net/base/completion_once_callback.h"
namespace base {
class TaskRunner;
class Time;
}
namespace net {
class URLRequestContextGetter;
// Clears the HTTP cache and calls |closure| back.
void ClearHttpCache(const scoped_refptr<net::URLRequestContextGetter>& getter,
const scoped_refptr<base::TaskRunner>& network_task_runner,
const base::Time& delete_begin,
const base::Time& delete_end,
net::CompletionOnceCallback callback);
} // namespace net
#endif // IOS_NET_HTTP_CACHE_HELPER_H_