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 // Clears the LoggedIn Predictor. | |
252 void ClearLoggedInPredictor(); | |
253 | |
254 // Callback when speculative data in the network Predictor has been cleared. | 247 // Callback when speculative data in the network Predictor has been cleared. |
255 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. | 248 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. |
256 void OnClearedNetworkPredictor(); | 249 void OnClearedNetworkPredictor(); |
257 | 250 |
258 // Invoked on the IO thread to clear speculative data related to hostname | 251 // Invoked on the IO thread to clear speculative data related to hostname |
259 // pre-resolution from the network Predictor. | 252 // pre-resolution from the network Predictor. |
260 void ClearNetworkPredictorOnIOThread(); | 253 void ClearNetworkPredictorOnIOThread(); |
261 | 254 |
262 // Callback when network related data in ProfileIOData has been cleared. | 255 // Callback when network related data in ProfileIOData has been cleared. |
263 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. | 256 // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // True if we're waiting for various data to be deleted. | 395 // True if we're waiting for various data to be deleted. |
403 // These may only be accessed from UI thread in order to avoid races! | 396 // These may only be accessed from UI thread in order to avoid races! |
404 bool waiting_for_clear_cache_; | 397 bool waiting_for_clear_cache_; |
405 bool waiting_for_clear_content_licenses_; | 398 bool waiting_for_clear_content_licenses_; |
406 // Non-zero if waiting for cookies to be cleared. | 399 // Non-zero if waiting for cookies to be cleared. |
407 int waiting_for_clear_cookies_count_; | 400 int waiting_for_clear_cookies_count_; |
408 bool waiting_for_clear_form_; | 401 bool waiting_for_clear_form_; |
409 bool waiting_for_clear_history_; | 402 bool waiting_for_clear_history_; |
410 bool waiting_for_clear_hostname_resolution_cache_; | 403 bool waiting_for_clear_hostname_resolution_cache_; |
411 bool waiting_for_clear_local_storage_; | 404 bool waiting_for_clear_local_storage_; |
412 bool waiting_for_clear_logged_in_predictor_; | |
413 bool waiting_for_clear_nacl_cache_; | 405 bool waiting_for_clear_nacl_cache_; |
414 bool waiting_for_clear_network_predictor_; | 406 bool waiting_for_clear_network_predictor_; |
415 bool waiting_for_clear_networking_history_; | 407 bool waiting_for_clear_networking_history_; |
416 bool waiting_for_clear_plugin_data_; | 408 bool waiting_for_clear_plugin_data_; |
417 bool waiting_for_clear_quota_managed_data_; | 409 bool waiting_for_clear_quota_managed_data_; |
418 bool waiting_for_clear_server_bound_certs_; | 410 bool waiting_for_clear_server_bound_certs_; |
419 bool waiting_for_clear_session_storage_; | 411 bool waiting_for_clear_session_storage_; |
420 bool waiting_for_clear_shader_cache_; | 412 bool waiting_for_clear_shader_cache_; |
421 | 413 |
422 // Tracking how many origins need to be deleted, and whether we're finished | 414 // Tracking how many origins need to be deleted, and whether we're finished |
(...skipping 12 matching lines...) Expand all Loading... |
435 | 427 |
436 ObserverList<Observer> observer_list_; | 428 ObserverList<Observer> observer_list_; |
437 | 429 |
438 // Used if we need to clear history. | 430 // Used if we need to clear history. |
439 CancelableTaskTracker history_task_tracker_; | 431 CancelableTaskTracker history_task_tracker_; |
440 | 432 |
441 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 433 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
442 }; | 434 }; |
443 | 435 |
444 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 436 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |