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

Unified Diff: net/reporting/reporting_context.cc

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
« no previous file with comments | « net/reporting/reporting_context.h ('k') | net/reporting/reporting_garbage_collector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_context.cc
diff --git a/net/reporting/reporting_context.cc b/net/reporting/reporting_context.cc
index cc50dc7aef2456a6f7725b8141790ae38724c2fd..c16604618f79b3fedeeacaf554d166fe2e4d7f7e 100644
--- a/net/reporting/reporting_context.cc
+++ b/net/reporting/reporting_context.cc
@@ -13,11 +13,13 @@
#include "base/time/default_tick_clock.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
+#include "base/timer/timer.h"
#include "net/base/backoff_entry.h"
#include "net/reporting/reporting_cache.h"
#include "net/reporting/reporting_delegate.h"
#include "net/reporting/reporting_delivery_agent.h"
#include "net/reporting/reporting_endpoint_manager.h"
+#include "net/reporting/reporting_garbage_collector.h"
#include "net/reporting/reporting_observer.h"
#include "net/reporting/reporting_policy.h"
@@ -79,6 +81,7 @@ ReportingContext::ReportingContext(const ReportingPolicy& policy,
uploader_(std::move(uploader)),
cache_(base::MakeUnique<ReportingCache>(this)),
endpoint_manager_(base::MakeUnique<ReportingEndpointManager>(this)),
- delivery_agent_(base::MakeUnique<ReportingDeliveryAgent>(this)) {}
+ delivery_agent_(base::MakeUnique<ReportingDeliveryAgent>(this)),
+ garbage_collector_(ReportingGarbageCollector::Create(this)) {}
} // namespace net
« no previous file with comments | « net/reporting/reporting_context.h ('k') | net/reporting/reporting_garbage_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698