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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 7210034: Update BrowsingDataRemover with the asynchronous CookieMonster API. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.h
===================================================================
--- chrome/browser/browsing_data_remover.h (revision 95818)
+++ chrome/browser/browsing_data_remover.h (working copy)
@@ -163,12 +163,19 @@
// NotifyAndDeleteIfDone on the UI thread.
void CheckQuotaManagedDataDeletionStatus();
+ // Callback when Cookies has been deleted. Invokes NotifyAndDeleteIfDone.
+ void OnClearedCookies(int num_deleted);
+
+ // Invoked on the IO thread to delete cookies.
+ void ClearCookiesOnIOThread(net::URLRequestContextGetter* rq_context);
+
// Calculate the begin time for the deletion range specified by |time_period|.
base::Time CalculateBeginDeleteTime(TimePeriod time_period);
// Returns true if we're all done.
bool all_done() {
return registrar_.IsEmpty() && !waiting_for_clear_cache_ &&
+ !waiting_for_clear_cookies_&&
!waiting_for_clear_history_ &&
!waiting_for_clear_quota_managed_data_ &&
!waiting_for_clear_networking_history_ &&
@@ -213,6 +220,7 @@
bool waiting_for_clear_history_;
bool waiting_for_clear_quota_managed_data_;
bool waiting_for_clear_networking_history_;
+ bool waiting_for_clear_cookies_;
bool waiting_for_clear_cache_;
bool waiting_for_clear_lso_data_;
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698