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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // NotifyAndDeleteIfDone. | 308 // NotifyAndDeleteIfDone. |
309 void OnClearedServerBoundCerts(); | 309 void OnClearedServerBoundCerts(); |
310 | 310 |
311 // Callback on the DB thread so that we can wait for the form data to be | 311 // Callback on the DB thread so that we can wait for the form data to be |
312 // cleared. | 312 // cleared. |
313 void FormDataDBThreadHop(); | 313 void FormDataDBThreadHop(); |
314 | 314 |
315 // Callback from the above method. | 315 // Callback from the above method. |
316 void OnClearedFormData(); | 316 void OnClearedFormData(); |
317 | 317 |
| 318 // Callback when Profile IO data has been deleted. |
| 319 void ClearedProfileIOData(); |
| 320 |
318 // Returns true if we're all done. | 321 // Returns true if we're all done. |
319 bool AllDone(); | 322 bool AllDone(); |
320 | 323 |
321 content::NotificationRegistrar registrar_; | 324 content::NotificationRegistrar registrar_; |
322 | 325 |
323 // Profile we're to remove from. | 326 // Profile we're to remove from. |
324 Profile* profile_; | 327 Profile* profile_; |
325 | 328 |
326 // The QuotaManager is owned by the profile; we can use a raw pointer here, | 329 // The QuotaManager is owned by the profile; we can use a raw pointer here, |
327 // and rely on the profile to destroy the object whenever it's reasonable. | 330 // and rely on the profile to destroy the object whenever it's reasonable. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 int waiting_for_clear_cookies_count_; | 368 int waiting_for_clear_cookies_count_; |
366 bool waiting_for_clear_history_; | 369 bool waiting_for_clear_history_; |
367 bool waiting_for_clear_local_storage_; | 370 bool waiting_for_clear_local_storage_; |
368 bool waiting_for_clear_session_storage_; | 371 bool waiting_for_clear_session_storage_; |
369 bool waiting_for_clear_networking_history_; | 372 bool waiting_for_clear_networking_history_; |
370 bool waiting_for_clear_server_bound_certs_; | 373 bool waiting_for_clear_server_bound_certs_; |
371 bool waiting_for_clear_plugin_data_; | 374 bool waiting_for_clear_plugin_data_; |
372 bool waiting_for_clear_quota_managed_data_; | 375 bool waiting_for_clear_quota_managed_data_; |
373 bool waiting_for_clear_content_licenses_; | 376 bool waiting_for_clear_content_licenses_; |
374 bool waiting_for_clear_form_; | 377 bool waiting_for_clear_form_; |
| 378 bool waiting_for_clear_profile_io_data_; |
375 | 379 |
376 // Tracking how many origins need to be deleted, and whether we're finished | 380 // Tracking how many origins need to be deleted, and whether we're finished |
377 // gathering origins. | 381 // gathering origins. |
378 int quota_managed_origins_to_delete_count_; | 382 int quota_managed_origins_to_delete_count_; |
379 int quota_managed_storage_types_to_delete_count_; | 383 int quota_managed_storage_types_to_delete_count_; |
380 | 384 |
381 // The removal mask for the current removal operation. | 385 // The removal mask for the current removal operation. |
382 int remove_mask_; | 386 int remove_mask_; |
383 | 387 |
384 // The origin for the current removal operation. | 388 // The origin for the current removal operation. |
385 GURL remove_origin_; | 389 GURL remove_origin_; |
386 | 390 |
387 // From which types of origins should we remove data? | 391 // From which types of origins should we remove data? |
388 int origin_set_mask_; | 392 int origin_set_mask_; |
389 | 393 |
390 ObserverList<Observer> observer_list_; | 394 ObserverList<Observer> observer_list_; |
391 | 395 |
392 // Used if we need to clear history. | 396 // Used if we need to clear history. |
393 CancelableRequestConsumer request_consumer_; | 397 CancelableRequestConsumer request_consumer_; |
394 | 398 |
395 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 399 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
396 }; | 400 }; |
397 | 401 |
398 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 402 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |