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

Unified Diff: net/reporting/reporting_cache.h

Issue 2900553004: Reporting: Add histograms. (Closed)
Patch Set: rebase Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/reporting/reporting_browsing_data_remover.cc ('k') | net/reporting/reporting_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_cache.h
diff --git a/net/reporting/reporting_cache.h b/net/reporting/reporting_cache.h
index 566449585d1550ca92ed26ef40b042c2c60575d6..2cd4bb7172c24226afd767420b6347175cb807bd 100644
--- a/net/reporting/reporting_cache.h
+++ b/net/reporting/reporting_cache.h
@@ -14,13 +14,13 @@
#include "base/values.h"
#include "net/base/net_export.h"
#include "net/reporting/reporting_client.h"
+#include "net/reporting/reporting_report.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace net {
class ReportingContext;
-struct ReportingReport;
// The cache holds undelivered reports and clients (per-origin endpoint
// configurations) in memory. (It is not responsible for persisting them.)
@@ -76,12 +76,12 @@ class NET_EXPORT ReportingCache {
// Removes a set of reports. Any reports that are pending will not be removed
// immediately, but rather marked doomed and removed once they are no longer
// pending.
- virtual void RemoveReports(
- const std::vector<const ReportingReport*>& reports) = 0;
+ virtual void RemoveReports(const std::vector<const ReportingReport*>& reports,
+ ReportingReport::Outcome outcome) = 0;
// Removes all reports. Like |RemoveReports()|, pending reports are doomed
// until no longer pending.
- virtual void RemoveAllReports() = 0;
+ virtual void RemoveAllReports(ReportingReport::Outcome outcome) = 0;
// Creates or updates a client for a particular origin and a particular
// endpoint.
« no previous file with comments | « net/reporting/reporting_browsing_data_remover.cc ('k') | net/reporting/reporting_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698