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

Issue 2604773002: Create distiller files for Reading List. (Closed)

Created:
3 years, 12 months ago by Olivier
Modified:
3 years, 11 months ago
CC:
chromium-reviews, stkhapugin, pkl (ping after 24h if needed), sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create distiller files for Reading List. DomDistillerService is used for ReadingList and ReaderMode. The requirements for both feature are different. As DomDistillerService main purpose (cross-platform) is Reader Mode, this CL creates files for the Reading List distillation. These files ensure that: - WebState used for distillation survives at least 10 seconds after the end of distillation to allow loading favicon - There is a 2 seconds delay between end of page load and start of distillation. - Reading List files are in Reading List components. These 2 requirements are irrelevant for Reader Mode as the page is already loaded and the favicon is not used. This CL also restore the behavior of Reader Mode before cl/2529283002. BUG=648923 Committed: https://crrev.com/31daab21ab182a3272daec45c77626c1628bd4d3 Cr-Commit-Position: refs/heads/master@{#441060}

Patch Set 1 #

Total comments: 37

Patch Set 2 : feedback #

Total comments: 1

Patch Set 3 : Attach/Detach #

Total comments: 22

Patch Set 4 : Feedback #

Total comments: 4

Patch Set 5 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -366 lines) Patch
M components/dom_distiller/ios/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M components/dom_distiller/ios/distiller_page_factory_ios.h View 2 chunks +6 lines, -6 lines 0 comments Download
M components/dom_distiller/ios/distiller_page_factory_ios.mm View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M components/dom_distiller/ios/distiller_page_ios.h View 1 2 3 3 chunks +19 lines, -7 lines 0 comments Download
M components/dom_distiller/ios/distiller_page_ios.mm View 1 2 3 6 chunks +30 lines, -25 lines 0 comments Download
D components/dom_distiller/ios/favicon_web_state_dispatcher.h View 1 chunk +0 lines, -34 lines 0 comments Download
M components/reading_list/ios/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + components/reading_list/ios/favicon_web_state_dispatcher.h View 1 1 chunk +9 lines, -10 lines 0 comments Download
M ios/chrome/browser/dom_distiller/BUILD.gn View 2 chunks +0 lines, -25 lines 0 comments Download
M ios/chrome/browser/dom_distiller/distiller_viewer.h View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M ios/chrome/browser/dom_distiller/distiller_viewer.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc View 1 3 chunks +1 line, -11 lines 0 comments Download
D ios/chrome/browser/dom_distiller/favicon_web_state_dispatcher_impl.h View 1 chunk +0 lines, -44 lines 0 comments Download
D ios/chrome/browser/dom_distiller/favicon_web_state_dispatcher_impl.mm View 1 chunk +0 lines, -77 lines 0 comments Download
D ios/chrome/browser/dom_distiller/favicon_web_state_dispatcher_impl_unittest.mm View 1 chunk +0 lines, -76 lines 0 comments Download
M ios/chrome/browser/reading_list/BUILD.gn View 5 chunks +17 lines, -0 lines 0 comments Download
A + ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.h View 1 3 chunks +8 lines, -8 lines 0 comments Download
A + ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl.mm View 1 5 chunks +11 lines, -10 lines 0 comments Download
A + ios/chrome/browser/reading_list/favicon_web_state_dispatcher_impl_unittest.mm View 1 3 chunks +8 lines, -8 lines 0 comments Download
A ios/chrome/browser/reading_list/reading_list_distiller_page.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A ios/chrome/browser/reading_list/reading_list_distiller_page.mm View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A ios/chrome/browser/reading_list/reading_list_distiller_page_factory.mm View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.h View 3 chunks +9 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service_factory.cc View 1 2 3 chunks +15 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.h View 3 chunks +12 lines, -5 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.cc View 3 chunks +5 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/url_downloader_unittest.mm View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/reader_mode/reader_mode_controller.mm View 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/test/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (13 generated)
Olivier
3 years, 12 months ago (2016-12-27 08:56:07 UTC) #3
gambard
https://codereview.chromium.org/2604773002/diff/1/components/dom_distiller/ios/distiller_page_ios.h File components/dom_distiller/ios/distiller_page_ios.h (right): https://codereview.chromium.org/2604773002/diff/1/components/dom_distiller/ios/distiller_page_ios.h#newcode45 components/dom_distiller/ios/distiller_page_ios.h:45: void DistillPage(); Comment https://codereview.chromium.org/2604773002/diff/1/components/dom_distiller/ios/distiller_page_ios.h#newcode45 components/dom_distiller/ios/distiller_page_ios.h:45: void DistillPage(); This function ...
3 years, 12 months ago (2016-12-27 09:35:59 UTC) #5
Olivier
Thanks https://codereview.chromium.org/2604773002/diff/1/components/dom_distiller/ios/distiller_page_ios.h File components/dom_distiller/ios/distiller_page_ios.h (right): https://codereview.chromium.org/2604773002/diff/1/components/dom_distiller/ios/distiller_page_ios.h#newcode45 components/dom_distiller/ios/distiller_page_ios.h:45: void DistillPage(); On 2016/12/27 09:35:58, gambard wrote: > ...
3 years, 12 months ago (2016-12-27 10:08:37 UTC) #7
gambard
https://codereview.chromium.org/2604773002/diff/20001/components/dom_distiller/ios/distiller_page_ios.mm File components/dom_distiller/ios/distiller_page_ios.mm (left): https://codereview.chromium.org/2604773002/diff/20001/components/dom_distiller/ios/distiller_page_ios.mm#oldcode204 components/dom_distiller/ios/distiller_page_ios.mm:204: web_state_ = nullptr; reset WebStateObserver.
3 years, 12 months ago (2016-12-27 10:53:30 UTC) #9
Olivier
Switched to Attach/Detach. PTAL.
3 years, 12 months ago (2016-12-27 12:35:39 UTC) #12
gambard
lgtm with comments https://codereview.chromium.org/2604773002/diff/40001/components/dom_distiller/ios/distiller_page_factory_ios.mm File components/dom_distiller/ios/distiller_page_factory_ios.mm (right): https://codereview.chromium.org/2604773002/diff/40001/components/dom_distiller/ios/distiller_page_factory_ios.mm#newcode10 components/dom_distiller/ios/distiller_page_factory_ios.mm:10: #include "ios/web/public/web_state/web_state.h" Not needed. https://codereview.chromium.org/2604773002/diff/40001/components/dom_distiller/ios/distiller_page_ios.h File ...
3 years, 12 months ago (2016-12-27 13:56:57 UTC) #13
Olivier
Thanks +noyau for owner. https://codereview.chromium.org/2604773002/diff/40001/components/dom_distiller/ios/distiller_page_factory_ios.mm File components/dom_distiller/ios/distiller_page_factory_ios.mm (right): https://codereview.chromium.org/2604773002/diff/40001/components/dom_distiller/ios/distiller_page_factory_ios.mm#newcode10 components/dom_distiller/ios/distiller_page_factory_ios.mm:10: #include "ios/web/public/web_state/web_state.h" On 2016/12/27 13:56:57, ...
3 years, 12 months ago (2016-12-27 14:52:15 UTC) #15
noyau (Ping after 24h)
lgtm https://codereview.chromium.org/2604773002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h File ios/chrome/browser/dom_distiller/distiller_viewer.h (right): https://codereview.chromium.org/2604773002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h#newcode58 ios/chrome/browser/dom_distiller/distiller_viewer.h:58: const DistillerPageFactory* factory); This does some magic when ...
3 years, 11 months ago (2017-01-02 09:52:49 UTC) #16
Olivier
Done. Thanks https://codereview.chromium.org/2604773002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h File ios/chrome/browser/dom_distiller/distiller_viewer.h (right): https://codereview.chromium.org/2604773002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h#newcode58 ios/chrome/browser/dom_distiller/distiller_viewer.h:58: const DistillerPageFactory* factory); On 2017/01/02 09:52:49, noyau ...
3 years, 11 months ago (2017-01-02 11:40:04 UTC) #17
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/2604773002/80001
3 years, 11 months ago (2017-01-02 11:40:21 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-02 12:33:07 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:55:22 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/31daab21ab182a3272daec45c77626c1628bd4d3
Cr-Commit-Position: refs/heads/master@{#441060}

Powered by Google App Engine
This is Rietveld 408576698