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. |