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

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: rebase 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
« no previous file with comments | « android_webview/browser/net/aw_cookie_store_wrapper.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.h
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
index d564f9ec235a296773b45c089b1f716f38c9cf24..45c02f5e584e62084480980f11fa6b6c1f75e7a7 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(
« no previous file with comments | « android_webview/browser/net/aw_cookie_store_wrapper.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698