Index: net/reporting/reporting_browsing_data_remover.h |
diff --git a/net/reporting/reporting_browsing_data_remover.h b/net/reporting/reporting_browsing_data_remover.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..db2bfb6df196b8ab14c46b894320eb3b72118f10 |
--- /dev/null |
+++ b/net/reporting/reporting_browsing_data_remover.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2017 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 NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
+#define NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
+ |
+#include "base/callback.h" |
+#include "base/macros.h" |
+#include "net/base/net_export.h" |
+#include "url/gurl.h" |
+ |
+namespace net { |
+ |
+class ReportingContext; |
+ |
+// Clears browsing data (reports and clients) from the Reporting system. |
+class NET_EXPORT ReportingBrowsingDataRemover { |
+ public: |
+ enum DataType { |
+ DATA_TYPE_REPORTS = 0x1, |
+ DATA_TYPE_CLIENTS = 0x2, |
+ }; |
+ |
+ static void RemoveBrowsingData( |
+ ReportingContext* context, |
+ int data_type_mask, |
+ base::Callback<bool(const GURL&)> origin_filter); |
+ |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ReportingBrowsingDataRemover); |
+}; |
+ |
+} // namespace net |
+ |
+#endif // NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |