OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
| 6 #define NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
| 10 #include "net/base/net_export.h" |
| 11 #include "url/gurl.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 class ReportingContext; |
| 16 |
| 17 // Clears browsing data (reports and clients) from the Reporting system. |
| 18 class NET_EXPORT ReportingBrowsingDataRemover { |
| 19 public: |
| 20 enum DataType { |
| 21 DATA_TYPE_REPORTS = 0x1, |
| 22 DATA_TYPE_CLIENTS = 0x2, |
| 23 }; |
| 24 |
| 25 static void RemoveBrowsingData( |
| 26 ReportingContext* context, |
| 27 int data_type_mask, |
| 28 base::Callback<bool(const GURL&)> origin_filter); |
| 29 |
| 30 private: |
| 31 DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingBrowsingDataRemover); |
| 32 }; |
| 33 |
| 34 } // namespace net |
| 35 |
| 36 #endif // NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |