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

Issue 2613833004: Split BrowsingDataRemover into an abstract interface and implementation. (Closed)

Created:
3 years, 11 months ago by msramek
Modified:
3 years, 11 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -1339 lines) Patch
M chrome/browser/BUILD.gn View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 4 chunks +31 lines, -277 lines 0 comments Download
D chrome/browser/browsing_data/browsing_data_remover.cc View 1 chunk +0 lines, -765 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_factory.cc View 3 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/browsing_data/browsing_data_remover_impl.h View 8 chunks +28 lines, -185 lines 0 comments Download
A + chrome/browser/browsing_data/browsing_data_remover_impl.cc View 22 chunks +57 lines, -47 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_test_util.h View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_test_util.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 15 chunks +28 lines, -32 lines 0 comments Download
M chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h View 1 2 4 chunks +50 lines, -19 lines 0 comments Download
M chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client_unittest.cc View 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
msramek
Hi Bernhard! Can you please have a look? This is another step in the BrowsingDataRemover ...
3 years, 11 months ago (2017-01-06 00:20:20 UTC) #4
Bernhard Bauer
LGTM Yeah, it's a bit unfortunate to have to duplicate SubTask... My hope is that ...
3 years, 11 months ago (2017-01-10 10:39:47 UTC) #11
msramek
Thanks! I had to fix the Android compilation and rebase in the meantime. I addressed ...
3 years, 11 months ago (2017-01-10 12:08:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2613833004/60001
3 years, 11 months ago (2017-01-10 12:08:56 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 13:12:20 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/78976d92399cc5d737657fb15269...

Powered by Google App Engine
This is Rietveld 408576698