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

Unified Diff: net/reporting/reporting_garbage_collector.h

Issue 2751883003: Reporting: Implement serializer. (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
« no previous file with comments | « net/reporting/reporting_context.cc ('k') | net/reporting/reporting_garbage_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_garbage_collector.h
diff --git a/net/reporting/reporting_garbage_collector.h b/net/reporting/reporting_garbage_collector.h
index 51b2c70417ba3df7869bfaa96582145ab3fd5b54..17bd9ab56268159caa75c671bb0e456c69de69f8 100644
--- a/net/reporting/reporting_garbage_collector.h
+++ b/net/reporting/reporting_garbage_collector.h
@@ -21,11 +21,19 @@ class ReportingContext;
// included in too many failed delivery attempts.
class NET_EXPORT ReportingGarbageCollector {
public:
+ // Creates a ReportingGarbageCollector. |context| must outlive the garbage
+ // collector.
static std::unique_ptr<ReportingGarbageCollector> Create(
ReportingContext* context);
virtual ~ReportingGarbageCollector();
+ // Initializes the GarbageCollector, which performs an initial garbage
+ // collection pass over any data already in the Cache.
+ virtual void Initialize() = 0;
+
+ // Replaces the internal Timer used for scheduling garbage collection passes
+ // with a caller-specified one so that unittests can provide a MockTimer.
virtual void SetTimerForTesting(std::unique_ptr<base::Timer> timer) = 0;
};
« 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