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

Unified Diff: content/browser/storage_partition_impl.h

Issue 1844243002: [CookieStore] Upgrading host-based deleting to predicate-based deleting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed url-based deletion on ios 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 45efae4622c9623ebb8146e31061131e986da90a..5a83220818cda191f35dded596bbacd31c947695 100644
--- a/content/browser/storage_partition_impl.h
+++ b/content/browser/storage_partition_impl.h
@@ -25,6 +25,7 @@
#include "content/common/storage_partition_service.mojom.h"
#include "content/public/browser/storage_partition.h"
#include "mojo/public/cpp/bindings/binding_set.h"
+#include "net/cookies/cookie_store.h"
#include "storage/browser/quota/special_storage_policy.h"
namespace content {
@@ -38,6 +39,12 @@ class StoragePartitionImpl : public StoragePartition,
// StoragePartition uses. This method generates that mask.
CONTENT_EXPORT static int GenerateQuotaClientMask(uint32_t remove_mask);
+ // This creates a CookiePredicate that matches all host (NOT domain) cookies
+ // that match the host of |url|. This is intended to be used with
+ // DeleteAllCreatedBetweenWithPredicateAsync.
+ CONTENT_EXPORT static net::CookieStore::CookiePredicate
+ CreatePredicateForHostCookies(const GURL& url);
+
CONTENT_EXPORT void OverrideQuotaManagerForTesting(
storage::QuotaManager* quota_manager);
CONTENT_EXPORT void OverrideSpecialStoragePolicyForTesting(

Powered by Google App Engine
This is Rietveld 408576698