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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/reporting/reporting_context.h" 5 #include "net/reporting/reporting_context.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
11 #include "base/time/clock.h" 11 #include "base/time/clock.h"
12 #include "base/time/default_clock.h" 12 #include "base/time/default_clock.h"
13 #include "base/time/default_tick_clock.h" 13 #include "base/time/default_tick_clock.h"
14 #include "base/time/tick_clock.h" 14 #include "base/time/tick_clock.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "base/timer/timer.h"
16 #include "net/base/backoff_entry.h" 17 #include "net/base/backoff_entry.h"
17 #include "net/reporting/reporting_cache.h" 18 #include "net/reporting/reporting_cache.h"
18 #include "net/reporting/reporting_delegate.h" 19 #include "net/reporting/reporting_delegate.h"
19 #include "net/reporting/reporting_delivery_agent.h" 20 #include "net/reporting/reporting_delivery_agent.h"
20 #include "net/reporting/reporting_endpoint_manager.h" 21 #include "net/reporting/reporting_endpoint_manager.h"
22 #include "net/reporting/reporting_garbage_collector.h"
21 #include "net/reporting/reporting_observer.h" 23 #include "net/reporting/reporting_observer.h"
22 #include "net/reporting/reporting_policy.h" 24 #include "net/reporting/reporting_policy.h"
23 25
24 namespace net { 26 namespace net {
25 27
26 class URLRequestContext; 28 class URLRequestContext;
27 29
28 namespace { 30 namespace {
29 31
30 class ReportingContextImpl : public ReportingContext { 32 class ReportingContextImpl : public ReportingContext {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::unique_ptr<base::Clock> clock, 74 std::unique_ptr<base::Clock> clock,
73 std::unique_ptr<base::TickClock> tick_clock, 75 std::unique_ptr<base::TickClock> tick_clock,
74 std::unique_ptr<ReportingUploader> uploader) 76 std::unique_ptr<ReportingUploader> uploader)
75 : policy_(policy), 77 : policy_(policy),
76 delegate_(std::move(delegate)), 78 delegate_(std::move(delegate)),
77 clock_(std::move(clock)), 79 clock_(std::move(clock)),
78 tick_clock_(std::move(tick_clock)), 80 tick_clock_(std::move(tick_clock)),
79 uploader_(std::move(uploader)), 81 uploader_(std::move(uploader)),
80 cache_(base::MakeUnique<ReportingCache>(this)), 82 cache_(base::MakeUnique<ReportingCache>(this)),
81 endpoint_manager_(base::MakeUnique<ReportingEndpointManager>(this)), 83 endpoint_manager_(base::MakeUnique<ReportingEndpointManager>(this)),
82 delivery_agent_(base::MakeUnique<ReportingDeliveryAgent>(this)) {} 84 delivery_agent_(base::MakeUnique<ReportingDeliveryAgent>(this)),
85 garbage_collector_(ReportingGarbageCollector::Create(this)) {}
83 86
84 } // namespace net 87 } // namespace net
OLDNEW
« 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