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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.h

Issue 238863005: Domain Reliability: Remove browsing data when requested. (Closed) Base URL: http://git.chromium.org/chromium/src.git@domrel_bakedin
Patch Set: ...and fix BrowsingDataRemoverTet Created 6 years, 7 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 | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.h
diff --git a/chrome/browser/profiles/profile_impl_io_data.h b/chrome/browser/profiles/profile_impl_io_data.h
index e037540937c6f1edb25f098108793125fbafbdca..e4197e49ee02ece9fb9f0b3d79a8dfc951cd0fc5 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/profiles/profile_io_data.h"
+#include "components/domain_reliability/clear_mode.h"
#include "content/public/browser/cookie_store_factory.h"
namespace chrome_browser_net {
@@ -95,6 +96,14 @@ class ProfileImplIOData : public ProfileIOData {
void ClearNetworkingHistorySince(base::Time time,
const base::Closure& completion);
+ // Clears part or all of the state of the Domain Reliability Monitor. If
+ // |clear_contexts| is true, clears the (site-provided) contexts, which are
+ // cookie-esque; if it is false, clears only the (logged) beacons within
+ // them, which are history-esque.
+ void ClearDomainReliabilityMonitor(
+ domain_reliability::DomainReliabilityClearMode mode,
+ const base::Closure& completion);
+
private:
typedef std::map<StoragePartitionDescriptor,
scoped_refptr<ChromeURLRequestContextGetter>,
@@ -196,6 +205,10 @@ class ProfileImplIOData : public ProfileIOData {
void ClearNetworkingHistorySinceOnIOThread(base::Time time,
const base::Closure& completion);
+ void ClearDomainReliabilityMonitorOnIOThread(
+ domain_reliability::DomainReliabilityClearMode mode,
+ const base::Closure& completion);
+
// Lazy initialization params.
mutable scoped_ptr<LazyParams> lazy_params_;
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698