| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |