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

Unified Diff: net/reporting/reporting_browsing_data_remover.h

Issue 2752523005: Reporting: Implement browsing data remover. (Closed)
Patch Set: Make requested changes. 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698