Chromium Code Reviews
DescriptionSplit BrowsingDataRemover into an abstract interface and implementation.
As a part of the migration of BrowsingDataRemover to content/, we split
it to a pure abstract interface BrowsingDataRemover that declares
- Subclasses and enums
- Removal methods.
- Observer methods.
- Inspection methods for testing.
and its implementation BrowsingDataRemoverImpl.
In the future, BrowsingDataRemover will live in content/public/ to be
used by embedders and BrowsingDataRemoverImpl in content/browsing_data/
as its only implementation. The unittest and browsertest, whose
content-related parts will be later extracted to content/browsing_data/,
have been updated to make a static_cast<> to BrowsingDataRemoverImpl
(as this is a valid assumption).
Note that the SubTask subclass has been duplicated in
BrowsingDataRemoverImpl and ChromeBrowsingDataRemoverDelegate. This is
because the fact that the deletion is organized into subtasks is an
implementation detail that does not belong to the abstract interface
of BrowsingDataRemover; and the fact that both classes do it the same
way is a "coincidence". TODO: Investigate how to avoid this duplication.
BUG=668114
Review-Url: https://codereview.chromium.org/2613833004
Cr-Commit-Position: refs/heads/master@{#442566}
Committed: https://chromium.googlesource.com/chromium/src/+/78976d92399cc5d737657fb15269fd4d987208e7
Patch Set 1 #
Total comments: 2
Patch Set 2 : Forward declaration #Patch Set 3 : Rebase #Patch Set 4 : Removed unnecessary instantiations. #Messages
Total messages: 22 (17 generated)
|