diff options
author | ncbray@chromium.org <ncbray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 21:14:52 +0000 |
---|---|---|
committer | ncbray@chromium.org <ncbray@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 21:14:52 +0000 |
commit | 43e497fd5191b24542d9a0a5ac8760a572279f4f (patch) | |
tree | a13ad9e4bcb4324530740af88ce20abb86f58181 /chrome/browser/browsing_data_remover.h | |
parent | 78c22e5f292255bde5ff243bbffed1cc9d3414cd (diff) | |
download | chromium_src-43e497fd5191b24542d9a0a5ac8760a572279f4f.zip chromium_src-43e497fd5191b24542d9a0a5ac8760a572279f4f.tar.gz chromium_src-43e497fd5191b24542d9a0a5ac8760a572279f4f.tar.bz2 |
Clear the NaCl validation cache whenever the main cache is cleared.
BUG= http://code.google.com/p/nativeclient/issues/detail?id=2515
TEST= none
Review URL: https://chromiumcodereview.appspot.com/10440121
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.h')
-rw-r--r-- | chrome/browser/browsing_data_remover.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h index 85b5280..d89541c 100644 --- a/chrome/browser/browsing_data_remover.h +++ b/chrome/browser/browsing_data_remover.h @@ -220,6 +220,18 @@ class BrowsingDataRemover : public content::NotificationObserver, // Performs the actual work to delete the cache. void DoClearCache(int rv); +#if !defined(DISABLE_NACL) + // Callback for when the NaCl cache has been deleted. Invokes + // NotifyAndDeleteIfDone. + void ClearedNaClCache(); + + // Invokes the ClearedNaClCache on the UI thread. + void ClearedNaClCacheOnIOThread(); + + // Invoked on the IO thread to delete the NaCl cache. + void ClearNaClCacheOnIOThread(); +#endif + // Invoked on the UI thread to delete local storage. void ClearLocalStorageOnUIThread(); @@ -270,17 +282,7 @@ class BrowsingDataRemover : public content::NotificationObserver, 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_count_&& - !waiting_for_clear_history_ && - !waiting_for_clear_local_storage_ && - !waiting_for_clear_networking_history_ && - !waiting_for_clear_server_bound_certs_ && - !waiting_for_clear_plugin_data_ && - !waiting_for_clear_quota_managed_data_ && - !waiting_for_clear_content_licenses_; - } + bool AllDone(); // Setter for removing_; DCHECKs that we can only start removing if we're not // already removing, and vice-versa. @@ -328,6 +330,7 @@ class BrowsingDataRemover : public content::NotificationObserver, // True if we're waiting for various data to be deleted. // These may only be accessed from UI thread in order to avoid races! bool waiting_for_clear_cache_; + bool waiting_for_clear_nacl_cache_; // Non-zero if waiting for cookies to be cleared. int waiting_for_clear_cookies_count_; bool waiting_for_clear_history_; |