Chromium Code Reviews| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 // Creates a BrowsingDataRemover to remove browser data from the specified | 243 // Creates a BrowsingDataRemover to remove browser data from the specified |
| 244 // profile in the specified time range. Use Remove to initiate the removal. | 244 // profile in the specified time range. Use Remove to initiate the removal. |
| 245 BrowsingDataRemover(Profile* profile, | 245 BrowsingDataRemover(Profile* profile, |
| 246 base::Time delete_begin, | 246 base::Time delete_begin, |
| 247 base::Time delete_end); | 247 base::Time delete_end); |
| 248 | 248 |
| 249 // BrowsingDataRemover deletes itself (using DeleteHelper) and is not supposed | 249 // BrowsingDataRemover deletes itself (using DeleteHelper) and is not supposed |
| 250 // to be deleted by other objects so make destructor private and DeleteHelper | 250 // to be deleted by other objects so make destructor private and DeleteHelper |
| 251 // a friend. | 251 // a friend. |
| 252 friend class base::DeleteHelper<BrowsingDataRemover>; | 252 friend class base::DeleteHelper<BrowsingDataRemover>; |
| 253 virtual ~BrowsingDataRemover(); | 253 ~BrowsingDataRemover() override; |
|
dcheng
2014/10/21 09:52:50
Ugh. It turns out this is only conditionally an ov
Mike West
2014/10/21 10:08:06
Bleh. That's unfortunate.
The #if/#else sounds fi
dcheng
2014/10/21 21:38:16
Done.
| |
| 254 | 254 |
| 255 // Callback for when TemplateURLService has finished loading. Clears the data, | 255 // Callback for when TemplateURLService has finished loading. Clears the data, |
| 256 // clears the respective waiting flag, and invokes NotifyAndDeleteIfDone. | 256 // clears the respective waiting flag, and invokes NotifyAndDeleteIfDone. |
| 257 void OnKeywordsLoaded(); | 257 void OnKeywordsLoaded(); |
| 258 | 258 |
| 259 // Called when plug-in data has been cleared. Invokes NotifyAndDeleteIfDone. | 259 // Called when plug-in data has been cleared. Invokes NotifyAndDeleteIfDone. |
| 260 void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); | 260 void OnWaitableEventSignaled(base::WaitableEvent* waitable_event); |
| 261 | 261 |
| 262 #if defined(ENABLE_PLUGINS) | 262 #if defined(ENABLE_PLUGINS) |
| 263 // PepperFlashSettingsManager::Client implementation. | 263 // PepperFlashSettingsManager::Client implementation. |
| 264 virtual void OnDeauthorizeContentLicensesCompleted(uint32 request_id, | 264 void OnDeauthorizeContentLicensesCompleted(uint32 request_id, |
| 265 bool success) override; | 265 bool success) override; |
| 266 #endif | 266 #endif |
| 267 | 267 |
| 268 #if defined (OS_CHROMEOS) | 268 #if defined (OS_CHROMEOS) |
| 269 void OnClearPlatformKeys(chromeos::DBusMethodCallStatus call_status, | 269 void OnClearPlatformKeys(chromeos::DBusMethodCallStatus call_status, |
| 270 bool result); | 270 bool result); |
| 271 #endif | 271 #endif |
| 272 | 272 |
| 273 // Removes the specified items related to browsing for a specific host. If the | 273 // Removes the specified items related to browsing for a specific host. If the |
| 274 // provided |origin| is empty, data is removed for all origins. The | 274 // provided |origin| is empty, data is removed for all origins. The |
| 275 // |origin_set_mask| parameter defines the set of origins from which data | 275 // |origin_set_mask| parameter defines the set of origins from which data |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 458 | 458 |
| 459 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 459 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
| 460 | 460 |
| 461 // We do not own this. | 461 // We do not own this. |
| 462 content::StoragePartition* storage_partition_for_testing_; | 462 content::StoragePartition* storage_partition_for_testing_; |
| 463 | 463 |
| 464 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 464 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 465 }; | 465 }; |
| 466 | 466 |
| 467 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 467 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |