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

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

Issue 2829683004: Reporting: Plumb from //chrome/browser/browsing_data. (Closed)
Patch Set: Fix. 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_context.cc ('k') | net/reporting/reporting_service.cc » ('j') | 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_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
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_
OLDNEW
« no previous file with comments | « net/reporting/reporting_context.cc ('k') | net/reporting/reporting_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698