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

Issue 2690333002: Initial checkin of OfflineContentProvider. (Closed)

Created:
3 years, 10 months ago by David Trainor- moved to gerrit
Modified:
3 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial checkin of OfflineContentProvider. This patch adds the initial OfflineContentProvider interface and aggregator. This will be the framework that exposes different types of downloads to the front end UI. The aggregator groups multiple OfflineContentProviders and exposes them as a single list of OfflineItems. BUG=691805 Review-Url: https://codereview.chromium.org/2690333002 Cr-Commit-Position: refs/heads/master@{#455011} Committed: https://chromium.googlesource.com/chromium/src/+/b4cc24562bca56bd56c7e461e39324eef85a19aa

Patch Set 1 #

Patch Set 2 : Added another test. #

Total comments: 2

Patch Set 3 : Added a few more comments. #

Patch Set 4 : ItemsAvailable -> AreItemsAvailable #

Total comments: 47

Patch Set 5 : Addressing initial comments. Will move to new directory next. #

Total comments: 1

Patch Set 6 : Moved files to components/offline_items_collection. #

Total comments: 26

Patch Set 7 : Addressed comments and added two more tests #

Total comments: 19

Patch Set 8 : Address dcheng comments #

Total comments: 8

Patch Set 9 : Updated GN target types #

Patch Set 10 : Removed forwarding build file and targets for now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1393 lines, -0 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A components/offline_items_collection/OWNERS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/DEPS View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_content_aggregator.h View 1 2 3 4 5 6 7 1 chunk +135 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_content_aggregator.cc View 1 2 3 4 5 6 7 1 chunk +249 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_content_aggregator_unittest.cc View 1 2 3 4 5 6 1 chunk +408 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_content_provider.h View 1 2 3 4 5 1 chunk +97 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_item.h View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_item.cc View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_item_filter.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/offline_item_state.h View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/test_support/BUILD.gn View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/test_support/mock_offline_content_provider.h View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/test_support/mock_offline_content_provider.cc View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/test_support/scoped_mock_offline_content_provider.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/test_support/scoped_mock_offline_content_provider.cc View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (18 generated)
David Trainor- moved to gerrit
ptal. qinmin@: All of it (sorry!). dimich/fgorski: Specifically the public interfaces but happy to have ...
3 years, 10 months ago (2017-02-14 01:21:15 UTC) #2
Dmitry Titov
Looks pretty cool, thanks for getting it so fast to a good shape! A few ...
3 years, 10 months ago (2017-02-14 05:41:31 UTC) #3
qinmin
https://codereview.chromium.org/2690333002/diff/20001/components/offline_content/core/test_support/mock_offline_content_provider.cc File components/offline_content/core/test_support/mock_offline_content_provider.cc (right): https://codereview.chromium.org/2690333002/diff/20001/components/offline_content/core/test_support/mock_offline_content_provider.cc#newcode1 components/offline_content/core/test_support/mock_offline_content_provider.cc:1: // Copyright (c) 2017 The Chromium Authors. All rights ...
3 years, 10 months ago (2017-02-14 07:37:20 UTC) #4
fgorski
Great patch. A few comments to consider added. https://codereview.chromium.org/2690333002/diff/60001/components/offline_content/OWNERS File components/offline_content/OWNERS (right): https://codereview.chromium.org/2690333002/diff/60001/components/offline_content/OWNERS#newcode1 components/offline_content/OWNERS:1: dtrainor@chromium.org ...
3 years, 10 months ago (2017-02-14 22:17:55 UTC) #5
David Trainor- moved to gerrit
thanks everyone for the comments! sorry i wasn't able to reply to them yet today. ...
3 years, 10 months ago (2017-02-15 00:23:07 UTC) #6
David Trainor- moved to gerrit
took longer than I thought but finally had some cycles to get back to this. ...
3 years, 10 months ago (2017-02-22 01:23:13 UTC) #7
qinmin
lgtm % comments https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/core/offline_content_aggregator.cc File components/offline_items_collection/core/offline_content_aggregator.cc (right): https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/core/offline_content_aggregator.cc#newcode45 components/offline_items_collection/core/offline_content_aggregator.cc:45: DCHECK(provider); nit: not needed, if provider ...
3 years, 10 months ago (2017-02-22 07:39:17 UTC) #8
fgorski
lgtm mod comments. https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/core/offline_content_aggregator.cc File components/offline_items_collection/core/offline_content_aggregator.cc (right): https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/core/offline_content_aggregator.cc#newcode177 components/offline_items_collection/core/offline_content_aggregator.cc:177: for (auto& observer : signaled_observers_) { ...
3 years, 10 months ago (2017-02-23 22:18:44 UTC) #9
Dmitry Titov
lgtm, nice patch! https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/OWNERS File components/offline_items_collection/OWNERS (right): https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/OWNERS#newcode2 components/offline_items_collection/OWNERS:2: fgorski@chromium.org Could you add me as ...
3 years, 10 months ago (2017-02-24 05:12:09 UTC) #10
David Trainor- moved to gerrit
https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/OWNERS File components/offline_items_collection/OWNERS (right): https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/OWNERS#newcode2 components/offline_items_collection/OWNERS:2: fgorski@chromium.org On 2017/02/24 05:12:09, Dmitry Titov wrote: > Could ...
3 years, 9 months ago (2017-03-03 00:34:12 UTC) #11
David Trainor- moved to gerrit
ptal for DEPS owners review: decheng@: included base/ in DEPS dpranke@: included testing/ in DEPS ...
3 years, 9 months ago (2017-03-03 00:36:53 UTC) #13
Dirk Pranke
lgtm
3 years, 9 months ago (2017-03-03 00:56:17 UTC) #14
dcheng
https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/core/offline_content_aggregator.cc File components/offline_items_collection/core/offline_content_aggregator.cc (right): https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/core/offline_content_aggregator.cc#newcode20 components/offline_items_collection/core/offline_content_aggregator.cc:20: bool VectorContains(const std::vector<T>& items, T item) { ContainsValue from ...
3 years, 9 months ago (2017-03-03 08:59:46 UTC) #19
David Trainor- moved to gerrit
https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/core/offline_content_aggregator.cc File components/offline_items_collection/core/offline_content_aggregator.cc (right): https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/core/offline_content_aggregator.cc#newcode20 components/offline_items_collection/core/offline_content_aggregator.cc:20: bool VectorContains(const std::vector<T>& items, T item) { On 2017/03/03 ...
3 years, 9 months ago (2017-03-03 09:42:01 UTC) #20
dcheng
lgtm
3 years, 9 months ago (2017-03-03 09:43:42 UTC) #21
fgorski
Just circling back. Things still look great. https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/core/offline_content_aggregator.cc File components/offline_items_collection/core/offline_content_aggregator.cc (right): https://codereview.chromium.org/2690333002/diff/100001/components/offline_items_collection/core/offline_content_aggregator.cc#newcode241 components/offline_items_collection/core/offline_content_aggregator.cc:241: if (pending_actions_.find(provider) ...
3 years, 9 months ago (2017-03-03 17:57:47 UTC) #22
David Trainor- moved to gerrit
brettw@ friendly ping for adding a dependency on url/. thanks!
3 years, 9 months ago (2017-03-04 06:43:04 UTC) #23
brettw
lgtm https://codereview.chromium.org/2690333002/diff/140001/components/offline_items_collection/BUILD.gn File components/offline_items_collection/BUILD.gn (right): https://codereview.chromium.org/2690333002/diff/140001/components/offline_items_collection/BUILD.gn#newcode5 components/offline_items_collection/BUILD.gn:5: static_library("offline_items_collection") { Some systems will complain about static ...
3 years, 9 months ago (2017-03-06 18:35:50 UTC) #24
brettw
https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/BUILD.gn File components/offline_items_collection/BUILD.gn (right): https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/BUILD.gn#newcode5 components/offline_items_collection/BUILD.gn:5: static_library("offline_items_collection") { I would consider just deleting this file, ...
3 years, 9 months ago (2017-03-06 18:36:42 UTC) #25
David Trainor- moved to gerrit
https://codereview.chromium.org/2690333002/diff/140001/components/offline_items_collection/BUILD.gn File components/offline_items_collection/BUILD.gn (right): https://codereview.chromium.org/2690333002/diff/140001/components/offline_items_collection/BUILD.gn#newcode5 components/offline_items_collection/BUILD.gn:5: static_library("offline_items_collection") { On 2017/03/06 18:35:49, brettw (plz ping after ...
3 years, 9 months ago (2017-03-06 19:03:23 UTC) #27
David Trainor- moved to gerrit
On 2017/03/06 18:36:42, brettw (plz ping after 24h) wrote: > https://codereview.chromium.org/2690333002/diff/120001/components/offline_items_collection/BUILD.gn > File components/offline_items_collection/BUILD.gn (right): ...
3 years, 9 months ago (2017-03-06 20:29:26 UTC) #31
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/2690333002/180001
3 years, 9 months ago (2017-03-07 00:59:25 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 01:08:26 UTC) #41
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/b4cc24562bca56bd56c7e461e393...

Powered by Google App Engine
This is Rietveld 408576698