Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_impl.h

Issue 2647683002: Consolidate Origin- and RegistrableDomain- FilterBuilder into one class (Closed)
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const base::Time& delete_end, 142 const base::Time& delete_end,
143 int remove_mask, 143 int remove_mask,
144 int origin_type_mask, 144 int origin_type_mask,
145 std::unique_ptr<BrowsingDataFilterBuilder> filter_builder, 145 std::unique_ptr<BrowsingDataFilterBuilder> filter_builder,
146 Observer* observer); 146 Observer* observer);
147 147
148 private: 148 private:
149 // Testing the private RemovalTask. 149 // Testing the private RemovalTask.
150 FRIEND_TEST_ALL_PREFIXES(BrowsingDataRemoverImplTest, MultipleTasks); 150 FRIEND_TEST_ALL_PREFIXES(BrowsingDataRemoverImplTest, MultipleTasks);
151 151
152 // The BrowsingDataRemover tests need to be able to access the implementation
153 // of Remove(), as it exposes details that aren't yet available in the public
154 // API. As soon as those details are exposed via new methods, this should be
155 // removed.
156 //
157 // TODO(mkwst): See http://crbug.com/113621
158 friend class BrowsingDataRemoverImplTest;
159 friend class ChromeBrowsingDataRemoverDelegateTest;
160
161 friend class BrowsingDataRemoverFactory; 152 friend class BrowsingDataRemoverFactory;
162 153
163 // Represents a single removal task. Contains all parameters needed to execute 154 // Represents a single removal task. Contains all parameters needed to execute
164 // it and a pointer to the observer that added it. 155 // it and a pointer to the observer that added it.
165 struct RemovalTask { 156 struct RemovalTask {
166 RemovalTask(const base::Time& delete_begin, 157 RemovalTask(const base::Time& delete_begin,
167 const base::Time& delete_end, 158 const base::Time& delete_end,
168 int remove_mask, 159 int remove_mask,
169 int origin_type_mask, 160 int origin_type_mask,
170 std::unique_ptr<BrowsingDataFilterBuilder> filter_builder, 161 std::unique_ptr<BrowsingDataFilterBuilder> filter_builder,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 249
259 // We do not own this. 250 // We do not own this.
260 content::StoragePartition* storage_partition_for_testing_ = nullptr; 251 content::StoragePartition* storage_partition_for_testing_ = nullptr;
261 252
262 base::WeakPtrFactory<BrowsingDataRemoverImpl> weak_ptr_factory_; 253 base::WeakPtrFactory<BrowsingDataRemoverImpl> weak_ptr_factory_;
263 254
264 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemoverImpl); 255 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemoverImpl);
265 }; 256 };
266 257
267 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_ 258 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698