diff options
author | ycxiao@chromium.org <ycxiao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-09 19:32:52 +0000 |
---|---|---|
committer | ycxiao@chromium.org <ycxiao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-09 19:32:52 +0000 |
commit | dd1635341d7d6f14c81ae106870753fbfc16de74 (patch) | |
tree | 4cfc9e03ad6e1f2e2abca3f257ae6c97369daa2b /chrome/browser/browsing_data_remover.h | |
parent | 10ff3b3bb6129b1706b5608d7bd97f44839e3d6a (diff) | |
download | chromium_src-dd1635341d7d6f14c81ae106870753fbfc16de74.zip chromium_src-dd1635341d7d6f14c81ae106870753fbfc16de74.tar.gz chromium_src-dd1635341d7d6f14c81ae106870753fbfc16de74.tar.bz2 |
Update BrowsingDataRemover with the asynchronous CookieMonster API.
BUG=XXXX
TEST=XXXX
Review URL: http://codereview.chromium.org/7210034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.h')
-rw-r--r-- | chrome/browser/browsing_data_remover.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h index 8f6351a..83715778 100644 --- a/chrome/browser/browsing_data_remover.h +++ b/chrome/browser/browsing_data_remover.h @@ -163,12 +163,19 @@ class BrowsingDataRemover : public NotificationObserver, // 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 @@ class BrowsingDataRemover : public NotificationObserver, 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_; |