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

Unified Diff: components/domain_reliability/monitor.h

Issue 2132563003: Implement origin-based deletion for the domain reliability service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DomainReliabilityMonitorTest Created 4 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 | « components/domain_reliability/context_manager.cc ('k') | components/domain_reliability/monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/monitor.h
diff --git a/components/domain_reliability/monitor.h b/components/domain_reliability/monitor.h
index c3efc7b90a9aaf1befee4563d82b69f923768c55..8fa3501b1f3e9a6cbffa058e759c826d0ce81369 100644
--- a/components/domain_reliability/monitor.h
+++ b/components/domain_reliability/monitor.h
@@ -111,10 +111,14 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityMonitor
void OnNetworkChanged(
net::NetworkChangeNotifier::ConnectionType type) override;
- // Called to remove browsing data. With CLEAR_BEACONS, leaves contexts in
- // place but clears beacons (which betray browsing history); with
- // CLEAR_CONTEXTS, removes all contexts (which can behave as cookies).
- void ClearBrowsingData(DomainReliabilityClearMode mode);
+ // Called to remove browsing data for origins matched by |origin_filter|.
+ // With CLEAR_BEACONS, leaves contexts in place but clears beacons (which
+ // betray browsing history); with CLEAR_CONTEXTS, removes entire contexts
+ // (which can behave as cookies). A null |origin_filter| is interpreted
+ // as an always-true filter, indicating complete deletion.
+ void ClearBrowsingData(
+ DomainReliabilityClearMode mode,
+ const base::Callback<bool(const GURL&)>& origin_filter);
// Gets a Value containing data that can be formatted into a web page for
// debugging purposes.
« no previous file with comments | « components/domain_reliability/context_manager.cc ('k') | components/domain_reliability/monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698