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

Side by Side Diff: net/reporting/reporting_endpoint_manager.h

Issue 2862003003: Reporting: Document browsing data remover + endpoint backoff (Closed)
Patch Set: rebase Created 3 years, 7 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_browsing_data_remover.h ('k') | no next file » | 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 #ifndef NET_REPORTING_REPORTING_ENDPOINT_MANAGER_H_ 5 #ifndef NET_REPORTING_REPORTING_ENDPOINT_MANAGER_H_
6 #define NET_REPORTING_REPORTING_ENDPOINT_MANAGER_H_ 6 #define NET_REPORTING_REPORTING_ENDPOINT_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void InformOfEndpointRequest(const GURL& endpoint, bool succeeded); 65 void InformOfEndpointRequest(const GURL& endpoint, bool succeeded);
66 66
67 private: 67 private:
68 const ReportingPolicy& policy() { return context_->policy(); } 68 const ReportingPolicy& policy() { return context_->policy(); }
69 base::TickClock* tick_clock() { return context_->tick_clock(); } 69 base::TickClock* tick_clock() { return context_->tick_clock(); }
70 ReportingCache* cache() { return context_->cache(); } 70 ReportingCache* cache() { return context_->cache(); }
71 71
72 ReportingContext* context_; 72 ReportingContext* context_;
73 73
74 std::set<GURL> pending_endpoints_; 74 std::set<GURL> pending_endpoints_;
75
76 // Note: Currently the ReportingBrowsingDataRemover does not clear this data
77 // because it's not persisted to disk. If it's ever persisted, it will need
78 // to be cleared as well.
75 std::map<GURL, std::unique_ptr<net::BackoffEntry>> endpoint_backoff_; 79 std::map<GURL, std::unique_ptr<net::BackoffEntry>> endpoint_backoff_;
76 80
77 DISALLOW_COPY_AND_ASSIGN(ReportingEndpointManager); 81 DISALLOW_COPY_AND_ASSIGN(ReportingEndpointManager);
78 }; 82 };
79 83
80 } // namespace net 84 } // namespace net
81 85
82 #endif // NET_REPORTING_REPORTING_ENDPOINT_MANAGER_H_ 86 #endif // NET_REPORTING_REPORTING_ENDPOINT_MANAGER_H_
OLDNEW
« no previous file with comments | « net/reporting/reporting_browsing_data_remover.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698