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

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)

Created:
3 years, 7 months ago by carlosk
Modified:
3 years, 6 months ago
CC:
chromium-reviews, chili+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, jam, petewil+watch_chromium.org, darin-cc_chromium.org, jianli
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create skeleton for the Prefetching store and initial pipeline step. Add the groundwork of the Prefetching Offline Pages persistent store and what will become the first step of the URL pipeline, that accepts URL suggestions from Zine. BUG=701939 Review-Url: https://codereview.chromium.org/2879013002 Cr-Commit-Position: refs/heads/master@{#476855} Committed: https://chromium.googlesource.com/chromium/src/+/76848ad61df944e68cda21e4fbc5e2565bd80f08

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Significant rebase. #

Patch Set 4 : A couple of minor changes. #

Total comments: 12

Patch Set 5 : Dispatcher instance is now injected into Service. Minor changes. #

Total comments: 18

Patch Set 6 : Moved ClientId into its own file and now used by prefetching; naming changes. #

Patch Set 7 : Mega rebase. #

Patch Set 8 : Minor fixes. #

Patch Set 9 : Rebased the rebase. #

Patch Set 10 : Fixed store not used build errors. #

Total comments: 2

Patch Set 11 : Reordered getters #

Patch Set 12 : More minor sorting. #

Total comments: 2

Patch Set 13 : Made construction params a cost&. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -121 lines) Patch
M chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -3 lines 0 comments Download
M components/offline_pages/core/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A components/offline_pages/core/client_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +36 lines, -0 lines 0 comments Download
A components/offline_pages/core/client_id.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
M components/offline_pages/core/offline_page_item.h View 1 2 3 4 5 1 chunk +1 line, -16 lines 0 comments Download
M components/offline_pages/core/offline_page_item.cc View 1 2 3 4 5 1 chunk +0 lines, -16 lines 0 comments Download
M components/offline_pages/core/prefetch/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
A components/offline_pages/core/prefetch/add_unique_urls_task.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A components/offline_pages/core/prefetch/add_unique_urls_task.cc View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher.h View 1 2 3 4 5 6 2 chunks +10 lines, -15 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -3 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_dispatcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +93 lines, -8 lines 0 comments Download
A components/offline_pages/core/prefetch/prefetch_in_memory_store.h View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A components/offline_pages/core/prefetch/prefetch_in_memory_store.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_item.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -6 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_item.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_item_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -6 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_service_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -7 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -14 lines 0 comments Download
A components/offline_pages/core/prefetch/prefetch_store.h View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_types.h View 1 2 3 4 5 6 2 chunks +18 lines, -1 line 0 comments Download
M components/offline_pages/core/prefetch/suggested_articles_observer.cc View 1 2 3 4 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 55 (38 generated)
carlosk
dimich@, dewittj@: PTAL. jianli@: FYI.
3 years, 7 months ago (2017-05-17 23:33:35 UTC) #12
carlosk
fgorski@: PTAL (because of initial store definition).
3 years, 7 months ago (2017-05-17 23:34:26 UTC) #14
Dmitry Titov
https://codereview.chromium.org/2879013002/diff/60001/components/offline_pages/content/prefetch_service_factory.cc File components/offline_pages/content/prefetch_service_factory.cc (right): https://codereview.chromium.org/2879013002/diff/60001/components/offline_pages/content/prefetch_service_factory.cc#newcode38 components/offline_pages/content/prefetch_service_factory.cc:38: std::unique_ptr<PrefetchStore> prefetch_store; Does this create an instance of abstract ...
3 years, 7 months ago (2017-05-18 21:24:02 UTC) #15
dewittj
https://codereview.chromium.org/2879013002/diff/60001/components/offline_pages/core/prefetch/add_unique_urls_task.cc File components/offline_pages/core/prefetch/add_unique_urls_task.cc (right): https://codereview.chromium.org/2879013002/diff/60001/components/offline_pages/core/prefetch/add_unique_urls_task.cc#newcode20 components/offline_pages/core/prefetch/add_unique_urls_task.cc:20: void AddUniqueUrlsTask::Run() { Task::TaskComplete is never called? https://codereview.chromium.org/2879013002/diff/60001/components/offline_pages/core/prefetch/add_unique_urls_task.cc#newcode23 components/offline_pages/core/prefetch/add_unique_urls_task.cc:23: ...
3 years, 7 months ago (2017-05-23 20:02:20 UTC) #16
carlosk
Thanks. I also made the dispatcher be an injected dependency of the service as discussed ...
3 years, 7 months ago (2017-05-24 20:57:26 UTC) #19
dewittj
lgtm
3 years, 7 months ago (2017-05-24 21:09:19 UTC) #20
Dmitry Titov
https://codereview.chromium.org/2879013002/diff/80001/components/offline_pages/core/prefetch/add_unique_urls_task.cc File components/offline_pages/core/prefetch/add_unique_urls_task.cc (right): https://codereview.chromium.org/2879013002/diff/80001/components/offline_pages/core/prefetch/add_unique_urls_task.cc#newcode23 components/offline_pages/core/prefetch/add_unique_urls_task.cc:23: store_->CreateItemsForUniqueUrls(name_space_, prefetch_urls_, This feels like delegating the whole thing ...
3 years, 7 months ago (2017-05-26 23:05:06 UTC) #23
fgorski
https://codereview.chromium.org/2879013002/diff/80001/components/offline_pages/content/prefetch_service_factory.cc File components/offline_pages/content/prefetch_service_factory.cc (right): https://codereview.chromium.org/2879013002/diff/80001/components/offline_pages/content/prefetch_service_factory.cc#newcode40 components/offline_pages/content/prefetch_service_factory.cc:40: std::unique_ptr<PrefetchDispatcher> prefetch_dispatcher_impl = nit: prefetch_dispatcher would be suitable I ...
3 years, 6 months ago (2017-05-30 17:21:46 UTC) #24
carlosk
Thanks. IRT to method/variable naming: I was trying to avoid having "prefetch" mentioned everywhere. To ...
3 years, 6 months ago (2017-06-01 01:49:59 UTC) #29
Dmitry Titov
lgtm! One nit: https://codereview.chromium.org/2879013002/diff/180001/components/offline_pages/core/prefetch/prefetch_service.h File components/offline_pages/core/prefetch/prefetch_service.h (right): https://codereview.chromium.org/2879013002/diff/180001/components/offline_pages/core/prefetch/prefetch_service.h#newcode31 components/offline_pages/core/prefetch/prefetch_service.h:31: virtual PrefetchDispatcher* GetPrefetchDispatcher() = 0; Lets ...
3 years, 6 months ago (2017-06-02 00:01:48 UTC) #36
carlosk
Thanks. https://codereview.chromium.org/2879013002/diff/180001/components/offline_pages/core/prefetch/prefetch_service.h File components/offline_pages/core/prefetch/prefetch_service.h (right): https://codereview.chromium.org/2879013002/diff/180001/components/offline_pages/core/prefetch/prefetch_service.h#newcode31 components/offline_pages/core/prefetch/prefetch_service.h:31: virtual PrefetchDispatcher* GetPrefetchDispatcher() = 0; On 2017/06/02 00:01:48, ...
3 years, 6 months ago (2017-06-02 01:59:57 UTC) #39
fgorski
lgtm with a comment https://codereview.chromium.org/2879013002/diff/220001/components/offline_pages/core/client_id.h File components/offline_pages/core/client_id.h (right): https://codereview.chromium.org/2879013002/diff/220001/components/offline_pages/core/client_id.h#newcode18 components/offline_pages/core/client_id.h:18: ClientId(std::string name_space, std::string id); Since ...
3 years, 6 months ago (2017-06-02 17:33:32 UTC) #44
carlosk
Thanks. https://codereview.chromium.org/2879013002/diff/220001/components/offline_pages/core/client_id.h File components/offline_pages/core/client_id.h (right): https://codereview.chromium.org/2879013002/diff/220001/components/offline_pages/core/client_id.h#newcode18 components/offline_pages/core/client_id.h:18: ClientId(std::string name_space, std::string id); On 2017/06/02 at 17:33:31, ...
3 years, 6 months ago (2017-06-02 17:51:26 UTC) #45
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/2879013002/240001
3 years, 6 months ago (2017-06-02 17:54:38 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/309453)
3 years, 6 months ago (2017-06-02 22:09:24 UTC) #50
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/2879013002/240001
3 years, 6 months ago (2017-06-02 22:14:54 UTC) #52
commit-bot: I haz the power
3 years, 6 months ago (2017-06-03 01:58:56 UTC) #55
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/76848ad61df944e68cda21e4fbc5...

Powered by Google App Engine
This is Rietveld 408576698