Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_delegate.h

Issue 2827523003: Move BrowsingDataRemover to content/ (Closed)
Patch Set: Rebase over codereview.chromium.org/2815913005 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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
5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_
7
8 #include "base/callback_forward.h"
9
10 class GURL;
11
12 namespace base {
13 class Time;
14 }
15
16 namespace content {
17 class BrowsingDataFilterBuilder;
18 }
19
20 namespace storage {
21 class SpecialStoragePolicy;
22 }
23
24 class BrowsingDataRemoverDelegate {
25 public:
26 // Determines whether |origin| matches |origin_type_mask| given
27 // the |special_storage_policy|.
28 typedef base::Callback<bool(int origin_type_mask,
29 const GURL& origin,
30 storage::SpecialStoragePolicy* policy)>
31 EmbedderOriginTypeMatcher;
32
33 virtual ~BrowsingDataRemoverDelegate() {}
34
35 // Returns a MaskMatcherFunction to match embedder's origin types.
36 // This MaskMatcherFunction will be called with an |origin_type_mask|
37 // parameter containing ONLY embedder-defined origin types, and must be able
38 // to handle ALL embedder-defined typed. It must be static and support
39 // being called on the UI and IO thread.
40 virtual EmbedderOriginTypeMatcher GetOriginTypeMatcher() const = 0;
41
42 // Removes embedder-specific data.
43 virtual void RemoveEmbedderData(
44 const base::Time& delete_begin,
45 const base::Time& delete_end,
46 int remove_mask,
47 const content::BrowsingDataFilterBuilder& filter_builder,
48 int origin_type_mask,
49 const base::Closure& callback) = 0;
50 };
51
52 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698