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_GARBAGE_COLLECTOR_H_ |
| 6 #define NET_REPORTING_REPORTING_GARBAGE_COLLECTOR_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "net/base/net_export.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 class ReportingContext; |
| 15 |
| 16 // Removes reports that have remained undelivered for too long or that have been |
| 17 // included in too many failed delivery attempts. |
| 18 class NET_EXPORT ReportingGarbageCollector { |
| 19 public: |
| 20 static std::unique_ptr<ReportingGarbageCollector> Create( |
| 21 ReportingContext* context); |
| 22 |
| 23 virtual ~ReportingGarbageCollector(); |
| 24 }; |
| 25 |
| 26 } // namespace net |
| 27 |
| 28 #endif // NET_REPORTING_REPORTING_GARBAGE_COLLECTOR_H_ |
OLD | NEW |