summaryrefslogtreecommitdiff
path: root/chromium/net/reporting/reporting_cache.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-03 13:42:47 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-15 10:27:51 +0000
commit8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (patch)
treed29d987c4d7b173cf853279b79a51598f104b403 /chromium/net/reporting/reporting_cache.cc
parent830c9e163d31a9180fadca926b3e1d7dfffb5021 (diff)
downloadqtwebengine-chromium-8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec.tar.gz
BASELINE: Update Chromium to 66.0.3359.156
Change-Id: I0c9831ad39911a086b6377b16f995ad75a51e441 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/net/reporting/reporting_cache.cc')
-rw-r--r--chromium/net/reporting/reporting_cache.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/net/reporting/reporting_cache.cc b/chromium/net/reporting/reporting_cache.cc
index 0ed130bc52e..14a61c28720 100644
--- a/chromium/net/reporting/reporting_cache.cc
+++ b/chromium/net/reporting/reporting_cache.cc
@@ -100,6 +100,17 @@ class ReportingCacheImpl : public ReportingCache {
}
}
+ void GetNonpendingReports(
+ std::vector<const ReportingReport*>* reports_out) const override {
+ reports_out->clear();
+ for (const auto& it : reports_) {
+ if (!base::ContainsKey(pending_reports_, it.first) &&
+ !base::ContainsKey(doomed_reports_, it.first)) {
+ reports_out->push_back(it.second.get());
+ }
+ }
+ }
+
void SetReportsPending(
const std::vector<const ReportingReport*>& reports) override {
for (const ReportingReport* report : reports) {
@@ -236,7 +247,7 @@ class ReportingCacheImpl : public ReportingCache {
}
// If no clients were found, try successive superdomain suffixes until a
- // client with includeSubdomains is found or there are no more domain
+ // client with include-subdomains is found or there are no more domain
// components left.
std::string domain = origin.host();
while (clients_out->empty() && !domain.empty()) {
@@ -463,7 +474,7 @@ class ReportingCacheImpl : public ReportingCache {
std::map<url::Origin, std::map<GURL, std::unique_ptr<ReportingClient>>>
clients_;
- // References but does not own all clients with includeSubdomains set, keyed
+ // References but does not own all clients with include-subdomains set, keyed
// by domain name.
std::unordered_map<std::string, std::unordered_set<const ReportingClient*>>
wildcard_clients_;