OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 | 844 |
845 waiting_for_clear_shader_cache_ = false; | 845 waiting_for_clear_shader_cache_ = false; |
846 NotifyAndDeleteIfDone(); | 846 NotifyAndDeleteIfDone(); |
847 } | 847 } |
848 | 848 |
849 void BrowsingDataRemover::ClearShaderCacheOnUIThread() { | 849 void BrowsingDataRemover::ClearShaderCacheOnUIThread() { |
850 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 850 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
851 | 851 |
852 BrowserContext::GetDefaultStoragePartition(profile_)->ClearDataForRange( | 852 BrowserContext::GetDefaultStoragePartition(profile_)->ClearDataForRange( |
853 content::StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE, | 853 content::StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE, |
854 content::StoragePartition::kAllStorage, | 854 content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, |
855 delete_begin_, delete_end_, | 855 delete_begin_, delete_end_, |
856 base::Bind(&BrowsingDataRemover::ClearedShaderCache, | 856 base::Bind(&BrowsingDataRemover::ClearedShaderCache, |
857 base::Unretained(this))); | 857 base::Unretained(this))); |
858 } | 858 } |
859 | 859 |
860 #if !defined(DISABLE_NACL) | 860 #if !defined(DISABLE_NACL) |
861 void BrowsingDataRemover::ClearedNaClCache() { | 861 void BrowsingDataRemover::ClearedNaClCache() { |
862 // This function should be called on the UI thread. | 862 // This function should be called on the UI thread. |
863 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 863 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
864 | 864 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1115 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1116 waiting_for_clear_form_ = false; | 1116 waiting_for_clear_form_ = false; |
1117 NotifyAndDeleteIfDone(); | 1117 NotifyAndDeleteIfDone(); |
1118 } | 1118 } |
1119 | 1119 |
1120 void BrowsingDataRemover::OnClearedAutofillOriginURLs() { | 1120 void BrowsingDataRemover::OnClearedAutofillOriginURLs() { |
1121 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1121 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1122 waiting_for_clear_autofill_origin_urls_ = false; | 1122 waiting_for_clear_autofill_origin_urls_ = false; |
1123 NotifyAndDeleteIfDone(); | 1123 NotifyAndDeleteIfDone(); |
1124 } | 1124 } |
OLD | NEW |