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

Unified Diff: components/domain_reliability/monitor.h

Issue 238863005: Domain Reliability: Remove browsing data when requested. (Closed) Base URL: http://git.chromium.org/chromium/src.git@domrel_bakedin
Patch Set: rebase Created 6 years, 8 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
Index: components/domain_reliability/monitor.h
diff --git a/components/domain_reliability/monitor.h b/components/domain_reliability/monitor.h
index 01ef84393f1e8a791d0b2a7b474f608f5e415b7d..97488bb238cf8f3cd5f95ce86c16a98b98b5845f 100644
--- a/components/domain_reliability/monitor.h
+++ b/components/domain_reliability/monitor.h
@@ -51,6 +51,18 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityMonitor {
void OnBeforeRedirect(net::URLRequest* request);
void OnCompleted(net::URLRequest* request, bool started);
+ // Called to remove browsing data:
+
+ // Removes all of the contexts being monitored. Since configs can contain
+ // site-provided data (config version, resource names, etc.) that will be
+ // repeated back in uploads, this should be treated like site data.
+ void ClearContexts();
+
+ // Removes all of the beacons stored in contexts, without removing the
+ // contexts. Since beacons can contain data derivative of browsing history,
+ // this should be treated like history.
+ void ClearBeacons();
+
DomainReliabilityContext* AddContextForTesting(
scoped_ptr<const DomainReliabilityConfig> config);

Powered by Google App Engine
This is Rietveld 408576698