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

Unified Diff: net/reporting/reporting_garbage_collector.h

Issue 2740833004: Reporting: Implement garbage collector. (Closed)
Patch Set: rebase 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_garbage_collector.h
diff --git a/net/reporting/reporting_garbage_collector.h b/net/reporting/reporting_garbage_collector.h
new file mode 100644
index 0000000000000000000000000000000000000000..95b0a004ecf7c0a4fb99d492613080e76f05caeb
--- /dev/null
+++ b/net/reporting/reporting_garbage_collector.h
@@ -0,0 +1,28 @@
+// 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_GARBAGE_COLLECTOR_H_
+#define NET_REPORTING_REPORTING_GARBAGE_COLLECTOR_H_
+
+#include <memory>
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+class ReportingContext;
+
+// Removes reports that have remained undelivered for too long or that have been
+// included in too many failed delivery attempts.
+class NET_EXPORT ReportingGarbageCollector {
+ public:
+ static std::unique_ptr<ReportingGarbageCollector> Create(
+ ReportingContext* context);
+
+ virtual ~ReportingGarbageCollector();
+};
+
+} // namespace net
+
+#endif // NET_REPORTING_REPORTING_GARBAGE_COLLECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698