OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | 5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 if (filter_builder.IsEmptyBlacklist()) { | 907 if (filter_builder.IsEmptyBlacklist()) { |
908 DCHECK(!plugin_data_remover_); | 908 DCHECK(!plugin_data_remover_); |
909 plugin_data_remover_.reset( | 909 plugin_data_remover_.reset( |
910 content::PluginDataRemover::Create(profile_)); | 910 content::PluginDataRemover::Create(profile_)); |
911 base::WaitableEvent* event = | 911 base::WaitableEvent* event = |
912 plugin_data_remover_->StartRemoving(delete_begin_); | 912 plugin_data_remover_->StartRemoving(delete_begin_); |
913 | 913 |
914 base::WaitableEventWatcher::EventCallback watcher_callback = base::Bind( | 914 base::WaitableEventWatcher::EventCallback watcher_callback = base::Bind( |
915 &ChromeBrowsingDataRemoverDelegate::OnWaitableEventSignaled, | 915 &ChromeBrowsingDataRemoverDelegate::OnWaitableEventSignaled, |
916 weak_ptr_factory_.GetWeakPtr()); | 916 weak_ptr_factory_.GetWeakPtr()); |
917 watcher_.StartWatching(event, watcher_callback); | 917 watcher_.StartWatching(event, std::move(watcher_callback)); |
918 } else { | 918 } else { |
919 // TODO(msramek): Store filters from the currently executed task on the | 919 // TODO(msramek): Store filters from the currently executed task on the |
920 // object to avoid having to copy them to callback methods. | 920 // object to avoid having to copy them to callback methods. |
921 flash_lso_helper_->StartFetching(base::Bind( | 921 flash_lso_helper_->StartFetching(base::Bind( |
922 &ChromeBrowsingDataRemoverDelegate::OnSitesWithFlashDataFetched, | 922 &ChromeBrowsingDataRemoverDelegate::OnSitesWithFlashDataFetched, |
923 weak_ptr_factory_.GetWeakPtr(), | 923 weak_ptr_factory_.GetWeakPtr(), |
924 filter_builder.BuildPluginFilter())); | 924 filter_builder.BuildPluginFilter())); |
925 } | 925 } |
926 } | 926 } |
927 #endif | 927 #endif |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 } | 1134 } |
1135 | 1135 |
1136 void ChromeBrowsingDataRemoverDelegate:: | 1136 void ChromeBrowsingDataRemoverDelegate:: |
1137 OnDeauthorizeFlashContentLicensesCompleted( | 1137 OnDeauthorizeFlashContentLicensesCompleted( |
1138 uint32_t request_id, | 1138 uint32_t request_id, |
1139 bool /* success */) { | 1139 bool /* success */) { |
1140 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); | 1140 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); |
1141 clear_flash_content_licenses_.GetCompletionCallback().Run(); | 1141 clear_flash_content_licenses_.GetCompletionCallback().Run(); |
1142 } | 1142 } |
1143 #endif | 1143 #endif |
OLD | NEW |