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

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

Issue 2829683004: Reporting: Plumb from //chrome/browser/browsing_data. (Closed)
Patch Set: 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
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_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void QueueReport(const GURL& url, 55 virtual void QueueReport(const GURL& url,
56 const std::string& group, 56 const std::string& group,
57 const std::string& type, 57 const std::string& type,
58 std::unique_ptr<const base::Value> body) = 0; 58 std::unique_ptr<const base::Value> body) = 0;
59 59
60 // Processes a Report-To header. |url| is the URL that originated the header; 60 // Processes a Report-To header. |url| is the URL that originated the header;
61 // |header_value| is the normalized value of the Report-To header. 61 // |header_value| is the normalized value of the Report-To header.
62 virtual void ProcessHeader(const GURL& url, 62 virtual void ProcessHeader(const GURL& url,
63 const std::string& header_value) = 0; 63 const std::string& header_value) = 0;
64 64
65 // Removes browsing data from the Reporting system. See
66 // ReportingBrowsingDataRemover for more details.
67 virtual void RemoveBrowsingData(
68 int data_type_mask,
69 base::Callback<bool(const GURL&)> origin_filter) = 0;
70
65 protected: 71 protected:
66 ReportingService() {} 72 ReportingService() {}
67 73
68 private: 74 private:
69 DISALLOW_COPY_AND_ASSIGN(ReportingService); 75 DISALLOW_COPY_AND_ASSIGN(ReportingService);
70 }; 76 };
71 77
72 } // namespace net 78 } // namespace net
73 79
74 #endif // NET_REPORTING_REPORTING_SERVICE_H_ 80 #endif // NET_REPORTING_REPORTING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698