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( |