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 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 void ClearOriginBoundCertsOnIOThread( | 239 void ClearOriginBoundCertsOnIOThread( |
240 net::URLRequestContextGetter* rq_context); | 240 net::URLRequestContextGetter* rq_context); |
241 | 241 |
242 // Callback when origin bound certs have been deleted. Invokes | 242 // Callback when origin bound certs have been deleted. Invokes |
243 // NotifyAndDeleteIfDone. | 243 // NotifyAndDeleteIfDone. |
244 void OnClearedOriginBoundCerts(); | 244 void OnClearedOriginBoundCerts(); |
245 | 245 |
246 // Calculate the begin time for the deletion range specified by |time_period|. | 246 // Calculate the begin time for the deletion range specified by |time_period|. |
247 base::Time CalculateBeginDeleteTime(TimePeriod time_period); | 247 base::Time CalculateBeginDeleteTime(TimePeriod time_period); |
248 | 248 |
249 // Invoked in a background task to clear local storage. | |
250 void ClearDOMStorageInSequencedTask( | |
251 content::DOMStorageContext* dom_storage_context); | |
252 | |
253 // Returns true if we're all done. | 249 // Returns true if we're all done. |
254 bool all_done() { | 250 bool all_done() { |
255 return registrar_.IsEmpty() && !waiting_for_clear_cache_ && | 251 return registrar_.IsEmpty() && !waiting_for_clear_cache_ && |
256 !waiting_for_clear_cookies_count_&& | 252 !waiting_for_clear_cookies_count_&& |
257 !waiting_for_clear_history_ && | 253 !waiting_for_clear_history_ && |
258 !waiting_for_clear_networking_history_ && | 254 !waiting_for_clear_networking_history_ && |
259 !waiting_for_clear_origin_bound_certs_ && | 255 !waiting_for_clear_origin_bound_certs_ && |
260 !waiting_for_clear_plugin_data_ && | 256 !waiting_for_clear_plugin_data_ && |
261 !waiting_for_clear_quota_managed_data_; | 257 !waiting_for_clear_quota_managed_data_; |
262 } | 258 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 320 |
325 ObserverList<Observer> observer_list_; | 321 ObserverList<Observer> observer_list_; |
326 | 322 |
327 // Used if we need to clear history. | 323 // Used if we need to clear history. |
328 CancelableRequestConsumer request_consumer_; | 324 CancelableRequestConsumer request_consumer_; |
329 | 325 |
330 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 326 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
331 }; | 327 }; |
332 | 328 |
333 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 329 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |