| 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_BROWSING_DATA_REMOVER_H_ | 5 #ifndef NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
| 6 #define NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ | 6 #define NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // browsing data remover. | 28 // browsing data remover. |
| 29 static std::unique_ptr<ReportingBrowsingDataRemover> Create( | 29 static std::unique_ptr<ReportingBrowsingDataRemover> Create( |
| 30 ReportingContext* context); | 30 ReportingContext* context); |
| 31 | 31 |
| 32 virtual ~ReportingBrowsingDataRemover(); | 32 virtual ~ReportingBrowsingDataRemover(); |
| 33 | 33 |
| 34 // Removes browsing data from the Reporting system. |data_type_mask| specifies | 34 // Removes browsing data from the Reporting system. |data_type_mask| specifies |
| 35 // which types of data to remove: reports queued by browser features and/or | 35 // which types of data to remove: reports queued by browser features and/or |
| 36 // clients (endpoints configured by origins). |origin_filter|, if not null, | 36 // clients (endpoints configured by origins). |origin_filter|, if not null, |
| 37 // specifies which origins' data to remove. | 37 // specifies which origins' data to remove. |
| 38 // |
| 39 // Note: Currently this does not clear the endpoint backoff data in |
| 40 // ReportingEndpointManager because that's not persisted to disk. If it's ever |
| 41 // persisted, it will need to be cleared as well. |
| 38 virtual void RemoveBrowsingData( | 42 virtual void RemoveBrowsingData( |
| 39 int data_type_mask, | 43 int data_type_mask, |
| 40 base::Callback<bool(const GURL&)> origin_filter) = 0; | 44 base::Callback<bool(const GURL&)> origin_filter) = 0; |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // namespace net | 47 } // namespace net |
| 44 | 48 |
| 45 #endif // NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ | 49 #endif // NET_REPORTING_REPORTING_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |