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_BROWSING_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 // object. | 237 // object. |
238 void NotifyAndDeleteIfDone(); | 238 void NotifyAndDeleteIfDone(); |
239 | 239 |
240 // Callback when the hostname resolution cache has been cleared. | 240 // Callback when the hostname resolution cache has been cleared. |
241 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. | 241 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. |
242 void OnClearedHostnameResolutionCache(); | 242 void OnClearedHostnameResolutionCache(); |
243 | 243 |
244 // Invoked on the IO thread to clear the hostname resolution cache. | 244 // Invoked on the IO thread to clear the hostname resolution cache. |
245 void ClearHostnameResolutionCacheOnIOThread(IOThread* io_thread); | 245 void ClearHostnameResolutionCacheOnIOThread(IOThread* io_thread); |
246 | 246 |
247 // Callback when the LoggedIn Predictor has been cleared. | |
248 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. | |
249 void OnClearedLoggedInPredictor(); | |
250 | |
251 // Invoked on the IO thread to clear the LoggedIn Predictor. | |
Bernhard Bauer
2013/04/13 06:46:24
This method isn't actually called on the IO thread
tburkard
2013/04/16 21:47:19
Done.
| |
252 void ClearLoggedInPredictor(); | |
253 | |
247 // Callback when speculative data in the network Predictor has been cleared. | 254 // Callback when speculative data in the network Predictor has been cleared. |
248 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. | 255 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. |
249 void OnClearedNetworkPredictor(); | 256 void OnClearedNetworkPredictor(); |
250 | 257 |
251 // Invoked on the IO thread to clear speculative data related to hostname | 258 // Invoked on the IO thread to clear speculative data related to hostname |
252 // pre-resolution from the network Predictor. | 259 // pre-resolution from the network Predictor. |
253 void ClearNetworkPredictorOnIOThread(); | 260 void ClearNetworkPredictorOnIOThread(); |
254 | 261 |
255 // Callback when network related data in ProfileIOData has been cleared. | 262 // Callback when network related data in ProfileIOData has been cleared. |
256 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. | 263 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
395 // True if we're waiting for various data to be deleted. | 402 // True if we're waiting for various data to be deleted. |
396 // These may only be accessed from UI thread in order to avoid races! | 403 // These may only be accessed from UI thread in order to avoid races! |
397 bool waiting_for_clear_cache_; | 404 bool waiting_for_clear_cache_; |
398 bool waiting_for_clear_content_licenses_; | 405 bool waiting_for_clear_content_licenses_; |
399 // Non-zero if waiting for cookies to be cleared. | 406 // Non-zero if waiting for cookies to be cleared. |
400 int waiting_for_clear_cookies_count_; | 407 int waiting_for_clear_cookies_count_; |
401 bool waiting_for_clear_form_; | 408 bool waiting_for_clear_form_; |
402 bool waiting_for_clear_history_; | 409 bool waiting_for_clear_history_; |
403 bool waiting_for_clear_hostname_resolution_cache_; | 410 bool waiting_for_clear_hostname_resolution_cache_; |
404 bool waiting_for_clear_local_storage_; | 411 bool waiting_for_clear_local_storage_; |
412 bool waiting_for_clear_logged_in_predictor_; | |
405 bool waiting_for_clear_nacl_cache_; | 413 bool waiting_for_clear_nacl_cache_; |
406 bool waiting_for_clear_network_predictor_; | 414 bool waiting_for_clear_network_predictor_; |
407 bool waiting_for_clear_networking_history_; | 415 bool waiting_for_clear_networking_history_; |
408 bool waiting_for_clear_plugin_data_; | 416 bool waiting_for_clear_plugin_data_; |
409 bool waiting_for_clear_quota_managed_data_; | 417 bool waiting_for_clear_quota_managed_data_; |
410 bool waiting_for_clear_server_bound_certs_; | 418 bool waiting_for_clear_server_bound_certs_; |
411 bool waiting_for_clear_session_storage_; | 419 bool waiting_for_clear_session_storage_; |
412 bool waiting_for_clear_shader_cache_; | 420 bool waiting_for_clear_shader_cache_; |
413 | 421 |
414 // Tracking how many origins need to be deleted, and whether we're finished | 422 // Tracking how many origins need to be deleted, and whether we're finished |
(...skipping 12 matching lines...) Expand all Loading... | |
427 | 435 |
428 ObserverList<Observer> observer_list_; | 436 ObserverList<Observer> observer_list_; |
429 | 437 |
430 // Used if we need to clear history. | 438 // Used if we need to clear history. |
431 CancelableTaskTracker history_task_tracker_; | 439 CancelableTaskTracker history_task_tracker_; |
432 | 440 |
433 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 441 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
434 }; | 442 }; |
435 | 443 |
436 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 444 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |