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

Issue 2011763005: Splits the OfflinePageModel into and interface and and implementation class. (Closed)

Created:
4 years, 7 months ago by dougarnett
Modified:
4 years, 6 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Splits the OfflinePageModel into and interface and and implementation class. Tried to make mostly straightforward split for this iteration. Some static members and methods were interesting deal with and we might consider better location/resolution to follow-up on. BUG=614864, 610824 Committed: https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb Cr-Commit-Position: refs/heads/master@{#396885}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed some feedback from romax #

Patch Set 3 : Fix unittest #

Total comments: 25

Patch Set 4 : Moved inheritances to impl and other feedback #

Patch Set 5 : Moves some inheritance back to interface for now to fix build #

Patch Set 6 : Backed out ctor/dtor default change #

Patch Set 7 : ihatec++ #

Patch Set 8 : Merge in recent changes by romax (eg, ClearStorage and callback on ExpirePages) #

Patch Set 9 : Fix to take ExpirePages defn out of model i/f as StorageManager defines it currently #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -2691 lines) Patch
M chrome/browser/android/offline_pages/offline_page_model_factory.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/android/offline_pages/test_offline_page_model_builder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/BUILD.gn View 2 chunks +3 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 3 4 5 6 7 8 7 chunks +51 lines, -242 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -904 lines 0 comments Download
A + components/offline_pages/offline_page_model_impl.h View 1 2 3 4 5 6 7 5 chunks +54 lines, -171 lines 0 comments Download
A + components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 5 6 7 36 chunks +182 lines, -191 lines 0 comments Download
A + components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 3 4 5 6 7 41 chunks +108 lines, -111 lines 0 comments Download
D components/offline_pages/offline_page_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1064 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
dougarnett
Yafei, do you want to take the first pass on this?
4 years, 7 months ago (2016-05-26 00:11:35 UTC) #2
romax
Mostly looks good to me. There's a comment about DeletePagesByOfflineId but it's fine to leave ...
4 years, 7 months ago (2016-05-26 01:26:49 UTC) #3
dougarnett
Thanks for the first pass Yafei. Justin or Filip, are either of you available to ...
4 years, 7 months ago (2016-05-26 16:03:22 UTC) #5
fgorski
I'll look tomorrow. On Thu, May 26, 2016 at 9:03 AM <dougarnett@chromium.org> wrote: > Thanks ...
4 years, 7 months ago (2016-05-26 16:04:45 UTC) #6
chromium-reviews
Justin or me will look at it. On Thu, May 26, 2016 at 9:04 AM ...
4 years, 7 months ago (2016-05-26 16:26:51 UTC) #7
dewittj
A good start! I think you should do a little bit more in this patch. ...
4 years, 7 months ago (2016-05-26 16:38:44 UTC) #8
Dmitry Titov
https://codereview.chromium.org/2011763005/diff/40001/components/offline_pages/offline_page_model.h File components/offline_pages/offline_page_model.h (right): https://codereview.chromium.org/2011763005/diff/40001/components/offline_pages/offline_page_model.h#newcode203 components/offline_pages/offline_page_model.h:203: DISALLOW_COPY_AND_ASSIGN(OfflinePageModel); Don't think this is needed for pure abstract ...
4 years, 7 months ago (2016-05-26 18:27:29 UTC) #10
dougarnett
Moved inheritance and addressed some other comments. Opened bug to track and follow up on ...
4 years, 7 months ago (2016-05-26 20:50:34 UTC) #11
dougarnett
On 2016/05/26 20:50:34, dougarnett wrote: > Moved inheritance and addressed some other comments. > Opened ...
4 years, 7 months ago (2016-05-26 21:26:48 UTC) #12
dougarnett
https://codereview.chromium.org/2011763005/diff/40001/components/offline_pages/offline_page_model.h File components/offline_pages/offline_page_model.h (right): https://codereview.chromium.org/2011763005/diff/40001/components/offline_pages/offline_page_model.h#newcode51 components/offline_pages/offline_page_model.h:51: class OfflinePageModel : public KeyedService, On 2016/05/26 20:50:34, dougarnett ...
4 years, 6 months ago (2016-05-27 15:22:29 UTC) #14
dewittj
lgtm, let's get started on those TODOs :)
4 years, 6 months ago (2016-05-27 20:49:25 UTC) #15
dougarnett
Yafei, I merged in your recent changes, can you take a look at the merge?
4 years, 6 months ago (2016-05-31 17:25:03 UTC) #16
romax
On 2016/05/31 17:25:03, dougarnett wrote: > Yafei, I merged in your recent changes, can you ...
4 years, 6 months ago (2016-05-31 18:21:30 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011763005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011763005/160001
4 years, 6 months ago (2016-05-31 18:23:47 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-05-31 19:07:22 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 19:08:29 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/76f2e5a378d9d1ab6daf69cb77723adf6d2c40eb
Cr-Commit-Position: refs/heads/master@{#396885}

Powered by Google App Engine
This is Rietveld 408576698