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 <stdint.h> |
| 9 |
8 #include <set> | 10 #include <set> |
9 | 11 |
10 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
12 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
13 #include "base/prefs/pref_member.h" | 16 #include "base/prefs/pref_member.h" |
14 #include "base/sequenced_task_runner_helpers.h" | 17 #include "base/sequenced_task_runner_helpers.h" |
15 #include "base/synchronization/waitable_event_watcher.h" | 18 #include "base/synchronization/waitable_event_watcher.h" |
16 #include "base/task/cancelable_task_tracker.h" | 19 #include "base/task/cancelable_task_tracker.h" |
17 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "build/build_config.h" |
18 #include "chrome/browser/pepper_flash_settings_manager.h" | 22 #include "chrome/browser/pepper_flash_settings_manager.h" |
19 #include "chrome/common/features.h" | 23 #include "chrome/common/features.h" |
20 #include "components/search_engines/template_url_service.h" | 24 #include "components/search_engines/template_url_service.h" |
21 #if defined(OS_CHROMEOS) | 25 #if defined(OS_CHROMEOS) |
22 #include "chromeos/dbus/dbus_method_call_status.h" | 26 #include "chromeos/dbus/dbus_method_call_status.h" |
23 #endif | 27 #endif |
24 #include "storage/common/quota/quota_types.h" | 28 #include "storage/common/quota/quota_types.h" |
25 #include "url/gurl.h" | 29 #include "url/gurl.h" |
26 #include "url/origin.h" | 30 #include "url/origin.h" |
27 | 31 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 282 |
279 // Callback for when TemplateURLService has finished loading. Clears the data, | 283 // Callback for when TemplateURLService has finished loading. Clears the data, |
280 // clears the respective waiting flag, and invokes NotifyAndDeleteIfDone. | 284 // clears the respective waiting flag, and invokes NotifyAndDeleteIfDone. |
281 void OnKeywordsLoaded(); | 285 void OnKeywordsLoaded(); |
282 | 286 |
283 // Called when plugin data has been cleared. Invokes NotifyAndDeleteIfDone. | 287 // Called when plugin data has been cleared. Invokes NotifyAndDeleteIfDone. |
284 void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); | 288 void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); |
285 | 289 |
286 #if defined(ENABLE_PLUGINS) | 290 #if defined(ENABLE_PLUGINS) |
287 // PepperFlashSettingsManager::Client implementation. | 291 // PepperFlashSettingsManager::Client implementation. |
288 void OnDeauthorizeContentLicensesCompleted(uint32 request_id, | 292 void OnDeauthorizeContentLicensesCompleted(uint32_t request_id, |
289 bool success) override; | 293 bool success) override; |
290 #endif | 294 #endif |
291 | 295 |
292 #if defined (OS_CHROMEOS) | 296 #if defined (OS_CHROMEOS) |
293 void OnClearPlatformKeys(chromeos::DBusMethodCallStatus call_status, | 297 void OnClearPlatformKeys(chromeos::DBusMethodCallStatus call_status, |
294 bool result); | 298 bool result); |
295 #endif | 299 #endif |
296 | 300 |
297 // Removes the specified items related to browsing for a specific host. If the | 301 // Removes the specified items related to browsing for a specific host. If the |
298 // provided |remove_url| is empty, data is removed for all origins. The | 302 // provided |remove_url| is empty, data is removed for all origins. The |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 | 441 |
438 #if defined(ENABLE_PLUGINS) | 442 #if defined(ENABLE_PLUGINS) |
439 // Used to delete plugin data. | 443 // Used to delete plugin data. |
440 scoped_ptr<content::PluginDataRemover> plugin_data_remover_; | 444 scoped_ptr<content::PluginDataRemover> plugin_data_remover_; |
441 base::WaitableEventWatcher watcher_; | 445 base::WaitableEventWatcher watcher_; |
442 | 446 |
443 // Used to deauthorize content licenses for Pepper Flash. | 447 // Used to deauthorize content licenses for Pepper Flash. |
444 scoped_ptr<PepperFlashSettingsManager> pepper_flash_settings_manager_; | 448 scoped_ptr<PepperFlashSettingsManager> pepper_flash_settings_manager_; |
445 #endif | 449 #endif |
446 | 450 |
447 uint32 deauthorize_content_licenses_request_id_ = 0; | 451 uint32_t deauthorize_content_licenses_request_id_ = 0; |
448 // True if we're waiting for various data to be deleted. | 452 // True if we're waiting for various data to be deleted. |
449 // These may only be accessed from UI thread in order to avoid races! | 453 // These may only be accessed from UI thread in order to avoid races! |
450 bool waiting_for_clear_autofill_origin_urls_ = false; | 454 bool waiting_for_clear_autofill_origin_urls_ = false; |
451 bool waiting_for_clear_cache_ = false; | 455 bool waiting_for_clear_cache_ = false; |
452 bool waiting_for_clear_channel_ids_ = false; | 456 bool waiting_for_clear_channel_ids_ = false; |
453 bool waiting_for_clear_content_licenses_ = false; | 457 bool waiting_for_clear_content_licenses_ = false; |
454 // Non-zero if waiting for cookies to be cleared. | 458 // Non-zero if waiting for cookies to be cleared. |
455 int waiting_for_clear_cookies_count_ = 0; | 459 int waiting_for_clear_cookies_count_ = 0; |
456 bool waiting_for_clear_domain_reliability_monitor_ = false; | 460 bool waiting_for_clear_domain_reliability_monitor_ = false; |
457 bool waiting_for_clear_form_ = false; | 461 bool waiting_for_clear_form_ = false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 493 |
490 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 494 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
491 | 495 |
492 // We do not own this. | 496 // We do not own this. |
493 content::StoragePartition* storage_partition_for_testing_ = nullptr; | 497 content::StoragePartition* storage_partition_for_testing_ = nullptr; |
494 | 498 |
495 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 499 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
496 }; | 500 }; |
497 | 501 |
498 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 502 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |