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

Unified Diff: net/reporting/reporting_context.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
« no previous file with comments | « net/BUILD.gn ('k') | net/reporting/reporting_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_context.h
diff --git a/net/reporting/reporting_context.h b/net/reporting/reporting_context.h
index 02425615039dd282419b9ebebc718df6c4592111..c4360ea51e06801a30563788bd69ce958010229b 100644
--- a/net/reporting/reporting_context.h
+++ b/net/reporting/reporting_context.h
@@ -24,6 +24,7 @@ class ReportingCache;
class ReportingDelegate;
class ReportingDeliveryAgent;
class ReportingEndpointManager;
+class ReportingGarbageCollector;
class ReportingObserver;
class ReportingUploader;
class URLRequestContext;
@@ -51,6 +52,9 @@ class NET_EXPORT ReportingContext {
return endpoint_manager_.get();
}
ReportingDeliveryAgent* delivery_agent() { return delivery_agent_.get(); }
+ ReportingGarbageCollector* garbage_collector() {
+ return garbage_collector_.get();
+ }
void AddObserver(ReportingObserver* observer);
void RemoveObserver(ReportingObserver* observer);
@@ -83,6 +87,9 @@ class NET_EXPORT ReportingContext {
// and |endpoint_manager_|.
std::unique_ptr<ReportingDeliveryAgent> delivery_agent_;
+ // |garbage_collector_| must come after |tick_clock_| and |cache_|.
+ std::unique_ptr<ReportingGarbageCollector> garbage_collector_;
+
DISALLOW_COPY_AND_ASSIGN(ReportingContext);
};
« no previous file with comments | « net/BUILD.gn ('k') | net/reporting/reporting_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698