| 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // TODO(crbug.com/483528): Make this non-static. | 84 // TODO(crbug.com/483528): Make this non-static. |
| 85 static void set_completion_inhibitor_for_testing( | 85 static void set_completion_inhibitor_for_testing( |
| 86 CompletionInhibitor* inhibitor) { | 86 CompletionInhibitor* inhibitor) { |
| 87 completion_inhibitor_ = inhibitor; | 87 completion_inhibitor_ = inhibitor; |
| 88 } | 88 } |
| 89 | 89 |
| 90 // BrowsingDataRemover implementation: | 90 // BrowsingDataRemover implementation: |
| 91 void SetEmbedderDelegate( | 91 void SetEmbedderDelegate( |
| 92 std::unique_ptr<BrowsingDataRemoverDelegate> embedder_delegate) override; | 92 std::unique_ptr<BrowsingDataRemoverDelegate> embedder_delegate) override; |
| 93 BrowsingDataRemoverDelegate* GetEmbedderDelegate() const override; | 93 BrowsingDataRemoverDelegate* GetEmbedderDelegate() const override; |
| 94 | 94 bool DoesOriginMatchMask( |
| 95 int origin_type_mask, |
| 96 const GURL& origin, |
| 97 storage::SpecialStoragePolicy* special_storage_policy) const override; |
| 95 void Remove(const base::Time& delete_begin, | 98 void Remove(const base::Time& delete_begin, |
| 96 const base::Time& delete_end, | 99 const base::Time& delete_end, |
| 97 int remove_mask, | 100 int remove_mask, |
| 98 int origin_type_mask) override; | 101 int origin_type_mask) override; |
| 99 void RemoveAndReply(const base::Time& delete_begin, | 102 void RemoveAndReply(const base::Time& delete_begin, |
| 100 const base::Time& delete_end, | 103 const base::Time& delete_end, |
| 101 int remove_mask, | 104 int remove_mask, |
| 102 int origin_type_mask, | 105 int origin_type_mask, |
| 103 Observer* observer) override; | 106 Observer* observer) override; |
| 104 void RemoveWithFilter( | 107 void RemoveWithFilter( |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 251 |
| 249 // We do not own this. | 252 // We do not own this. |
| 250 content::StoragePartition* storage_partition_for_testing_ = nullptr; | 253 content::StoragePartition* storage_partition_for_testing_ = nullptr; |
| 251 | 254 |
| 252 base::WeakPtrFactory<BrowsingDataRemoverImpl> weak_ptr_factory_; | 255 base::WeakPtrFactory<BrowsingDataRemoverImpl> weak_ptr_factory_; |
| 253 | 256 |
| 254 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemoverImpl); | 257 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemoverImpl); |
| 255 }; | 258 }; |
| 256 | 259 |
| 257 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_ | 260 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_ |
| OLD | NEW |