blob: 692ebed779294136ee19779e389358ca7e543a5a (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// 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_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_PROVIDER_H_
#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_PROVIDER_H_
#include "base/basictypes.h"
#include "base/callback_forward.h"
class GURL;
namespace base {
class Time;
}
namespace net {
class URLRequestContextGetter;
}
namespace ios {
class ChromeBrowserState;
// A class that provides additional functionality to
// IOSChromeBrowsingDataRemover.
class IOSChromeBrowsingDataRemoverProvider {
public:
virtual ~IOSChromeBrowsingDataRemoverProvider() {}
// Clears the hostname resolution cache and runs |callback| on completion.
// If the hostname resolution cache doesn't exist, runs |callback|
// immediately.
virtual void ClearHostnameResolutionCache(const base::Closure& callback) = 0;
// Gets the URLRequestContextGetter used by the SafeBrowsing service. Returns
// null if there is no SafeBrowsing service.
virtual net::URLRequestContextGetter* GetSafeBrowsingURLRequestContext() = 0;
// Clears the relevant storage partition and runs |callback| on
// completion.
virtual void ClearStoragePartition(const GURL& remove_url,
base::Time delete_begin,
base::Time delete_end,
const base::Closure& callback) = 0;
};
} // namespace ios
#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_PROVIDER_H_
|