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

Unified Diff: android_webview/browser/net/aw_cookie_store_wrapper.cc

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.h ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/aw_cookie_store_wrapper.cc
diff --git a/android_webview/browser/net/aw_cookie_store_wrapper.cc b/android_webview/browser/net/aw_cookie_store_wrapper.cc
index 2c4531f35df4d85d67d8ea6239420303c919a641..7195ef290b4b3a1ae4424f62ef8af77a7fd454f7 100644
--- a/android_webview/browser/net/aw_cookie_store_wrapper.cc
+++ b/android_webview/browser/net/aw_cookie_store_wrapper.cc
@@ -167,13 +167,13 @@ void DeleteAllCreatedBetweenAsyncOnCookieThread(
callback);
}
-void DeleteAllCreatedBetweenForHostAsyncOnCookieThread(
- const base::Time delete_begin,
- const base::Time delete_end,
- const GURL& url,
+void DeleteAllCreatedBetweenWithPredicateAsyncOnCookieThread(
+ const base::Time& delete_begin,
+ const base::Time& delete_end,
+ const net::CookieStore::CookiePredicate& predicate,
const net::CookieStore::DeleteCallback& callback) {
- GetCookieStore()->DeleteAllCreatedBetweenForHostAsync(
- delete_begin, delete_end, url, callback);
+ GetCookieStore()->DeleteAllCreatedBetweenWithPredicateAsync(
+ delete_begin, delete_end, predicate, callback);
}
void DeleteSessionCookiesAsyncOnCookieThread(
@@ -287,15 +287,15 @@ void AwCookieStoreWrapper::DeleteAllCreatedBetweenAsync(
delete_end, CreateWrappedCallback<int>(callback)));
}
-void AwCookieStoreWrapper::DeleteAllCreatedBetweenForHostAsync(
- const base::Time delete_begin,
- const base::Time delete_end,
- const GURL& url,
+void AwCookieStoreWrapper::DeleteAllCreatedBetweenWithPredicateAsync(
+ const base::Time& delete_begin,
+ const base::Time& delete_end,
+ const CookiePredicate& predicate,
const DeleteCallback& callback) {
DCHECK(client_task_runner_->RunsTasksOnCurrentThread());
PostTaskToCookieStoreTaskRunner(base::Bind(
- &DeleteAllCreatedBetweenForHostAsyncOnCookieThread, delete_begin,
- delete_end, url, CreateWrappedCallback<int>(callback)));
+ &DeleteAllCreatedBetweenWithPredicateAsyncOnCookieThread, delete_begin,
+ delete_end, predicate, CreateWrappedCallback<int>(callback)));
}
void AwCookieStoreWrapper::DeleteSessionCookiesAsync(
« no previous file with comments | « android_webview/browser/net/aw_cookie_store_wrapper.h ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698