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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « net/reporting/reporting_context.cc ('k') | net/reporting/reporting_garbage_collector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 base {
13 class Timer;
14 } // namespace base
15
16 namespace net {
17
18 class ReportingContext;
19
20 // Removes reports that have remained undelivered for too long or that have been
21 // included in too many failed delivery attempts.
22 class NET_EXPORT ReportingGarbageCollector {
23 public:
24 static std::unique_ptr<ReportingGarbageCollector> Create(
25 ReportingContext* context);
26
27 virtual ~ReportingGarbageCollector();
28
29 virtual void SetTimerForTesting(std::unique_ptr<base::Timer> timer) = 0;
30 };
31
32 } // namespace net
33
34 #endif // NET_REPORTING_REPORTING_GARBAGE_COLLECTOR_H_
OLDNEW
« no previous file with comments | « net/reporting/reporting_context.cc ('k') | net/reporting/reporting_garbage_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698