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

Unified Diff: content/browser/storage_partition_impl.h

Issue 1741123002: Add removal filter support for Cookies, Storage, and Content Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed class, comments Created 4 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: content/browser/storage_partition_impl.h
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
index 5a83220818cda191f35dded596bbacd31c947695..865f51888aacfaa4126be6e395edb508e786c209 100644
--- a/content/browser/storage_partition_impl.h
+++ b/content/browser/storage_partition_impl.h
@@ -87,6 +87,14 @@ class StoragePartitionImpl : public StoragePartition,
const base::Time end,
const base::Closure& callback) override;
+ void ClearData(uint32_t remove_mask,
+ uint32_t quota_storage_remove_mask,
+ const OriginMatcherFunction& origin_matcher,
+ const CookieMatcherFunction& cookie_matcher,
+ const base::Time begin,
+ const base::Time end,
+ const base::Closure& callback) override;
+
void Flush() override;
WebRTCIdentityStore* GetWebRTCIdentityStore();
@@ -129,6 +137,7 @@ class StoragePartitionImpl : public StoragePartition,
RemoveQuotaManagedIgnoreDevTools);
FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieForever);
FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieLastHour);
+ FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, RemoveCookieWithMatcher);
FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest,
RemoveUnprotectedLocalStorageForever);
FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest,
@@ -165,10 +174,12 @@ class StoragePartitionImpl : public StoragePartition,
PlatformNotificationContextImpl* platform_notification_context,
BackgroundSyncContextImpl* background_sync_context);
+ // We will never have both remove_origin be populated and a cookie_matcher.
void ClearDataImpl(uint32_t remove_mask,
uint32_t quota_storage_remove_mask,
const GURL& remove_origin,
const OriginMatcherFunction& origin_matcher,
+ const CookieMatcherFunction& cookie_matcher,
net::URLRequestContextGetter* rq_context,
const base::Time begin,
const base::Time end,

Powered by Google App Engine
This is Rietveld 408576698