| 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_SERVICE_H_ | 5 #ifndef NET_REPORTING_REPORTING_SERVICE_H_ |
| 6 #define NET_REPORTING_REPORTING_SERVICE_H_ | 6 #define NET_REPORTING_REPORTING_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual void QueueReport(const GURL& url, | 52 virtual void QueueReport(const GURL& url, |
| 53 const std::string& group, | 53 const std::string& group, |
| 54 const std::string& type, | 54 const std::string& type, |
| 55 std::unique_ptr<const base::Value> body) = 0; | 55 std::unique_ptr<const base::Value> body) = 0; |
| 56 | 56 |
| 57 // Processes a Report-To header. |url| is the URL that originated the header; | 57 // Processes a Report-To header. |url| is the URL that originated the header; |
| 58 // |header_value| is the normalized value of the Report-To header. | 58 // |header_value| is the normalized value of the Report-To header. |
| 59 virtual void ProcessHeader(const GURL& url, | 59 virtual void ProcessHeader(const GURL& url, |
| 60 const std::string& header_value) = 0; | 60 const std::string& header_value) = 0; |
| 61 | 61 |
| 62 // Removes browsing data from the Reporting system. See |
| 63 // ReportingBrowsingDataRemover for more details. |
| 64 virtual void RemoveBrowsingData( |
| 65 int data_type_mask, |
| 66 base::Callback<bool(const GURL&)> origin_filter) = 0; |
| 67 |
| 62 protected: | 68 protected: |
| 63 ReportingService() {} | 69 ReportingService() {} |
| 64 | 70 |
| 65 private: | 71 private: |
| 66 DISALLOW_COPY_AND_ASSIGN(ReportingService); | 72 DISALLOW_COPY_AND_ASSIGN(ReportingService); |
| 67 }; | 73 }; |
| 68 | 74 |
| 69 } // namespace net | 75 } // namespace net |
| 70 | 76 |
| 71 #endif // NET_REPORTING_REPORTING_SERVICE_H_ | 77 #endif // NET_REPORTING_REPORTING_SERVICE_H_ |
| OLD | NEW |