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

Issue 260073009: [dom_distiller] Add support for incremental viewer. (Closed)

Created:
6 years, 7 months ago by Yaron
Modified:
6 years, 7 months ago
Reviewers:
nyquist, Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[dom_distiller] Add support for incremental viewer. The viewed page can now be rendered all at once, or with a single page update, followed by additional page content sent via HTML. While more pages are loading, a progress indicator is present. The title for a page was added to DistilledPageProto so its accessible during partial distillation. This was already stored in DistilledPageData so it's just moved. BUG=319881 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270622

Patch Set 1 #

Total comments: 10

Patch Set 2 : added test #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : track webcontents #

Patch Set 6 : fix ios #

Total comments: 20

Patch Set 7 : #

Total comments: 2

Patch Set 8 : is_in_page #

Total comments: 15

Patch Set 9 : fix incremental, nyquist comments #

Patch Set 10 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -55 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc View 1 2 3 4 5 6 7 8 5 chunks +129 lines, -6 lines 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.cc View 1 2 3 4 5 6 7 8 9 4 chunks +185 lines, -12 lines 1 comment Download
M components/dom_distiller/content/dom_distiller_viewer_source_unittest.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M components/dom_distiller/content/resources/dom_distiller_viewer.html View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -10 lines 0 comments Download
A components/dom_distiller/content/resources/dom_distiller_viewer.js View 1 1 chunk +14 lines, -0 lines 0 comments Download
M components/dom_distiller/core/css/distilledpage.css View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/dom_distiller/core/distiller.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/dom_distiller/core/distiller.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M components/dom_distiller/core/fake_db.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/dom_distiller/core/fake_distiller.h View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -1 line 0 comments Download
M components/dom_distiller/core/fake_distiller.cc View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -0 lines 0 comments Download
M components/dom_distiller/core/proto/distilled_page.proto View 1 chunk +4 lines, -1 line 0 comments Download
M components/dom_distiller/core/url_constants.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/dom_distiller/core/url_constants.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/dom_distiller/core/viewer.h View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -3 lines 0 comments Download
M components/dom_distiller/core/viewer.cc View 1 2 3 4 5 6 chunks +63 lines, -14 lines 0 comments Download
M components/dom_distiller_strings.grdp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M components/resources/dom_distiller_resources.grdp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
Yaron
First look. Need to add some comments and tests
6 years, 7 months ago (2014-04-29 04:05:01 UTC) #1
nyquist
https://codereview.chromium.org/260073009/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/260073009/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode77 components/dom_distiller/content/dom_distiller_viewer_source.cc:77: std::string unsafe_page_html = viewer::GetUnsafeArticleHtml(article_proto); Add a comment. Maybe something ...
6 years, 7 months ago (2014-04-29 23:58:36 UTC) #2
Yaron
nyquist: ptal, now with a test creis: can you take a look at the RenderFrameHost/WebContentsObserver ...
6 years, 7 months ago (2014-05-07 05:04:29 UTC) #3
Charlie Reis
[+avi,jam] I think it would be good to avoid dealing with RenderFrameHosts directly here. It ...
6 years, 7 months ago (2014-05-07 20:00:17 UTC) #4
Avi (use Gerrit)
On 2014/05/07 20:00:17, Charlie Reis wrote: > [+avi,jam] > > I think it would be ...
6 years, 7 months ago (2014-05-07 21:00:25 UTC) #5
Charlie Reis
On 2014/05/07 21:00:25, Avi wrote: > On 2014/05/07 20:00:17, Charlie Reis wrote: > > [+avi,jam] ...
6 years, 7 months ago (2014-05-07 21:22:33 UTC) #6
Yaron
ok, changed to track webcontents
6 years, 7 months ago (2014-05-09 17:50:49 UTC) #7
Charlie Reis
Thanks, that seems more reasonable to me. A few questions and some minor nits below ...
6 years, 7 months ago (2014-05-09 21:32:46 UTC) #8
Yaron
All comments addressed. Avi: can you look at https://codereview.chromium.org/260073009/diff/100001/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode28 since Charlie appears to be out ...
6 years, 7 months ago (2014-05-12 18:48:16 UTC) #9
Charlie Reis
I'm still around until the 17th, though my time will indeed be tight this week. ...
6 years, 7 months ago (2014-05-12 20:04:00 UTC) #10
Yaron
thanks for the quick review. switched to DidNavigateMainFrame https://codereview.chromium.org/260073009/diff/110001/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/260073009/diff/110001/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode119 components/dom_distiller/content/dom_distiller_viewer_source.cc:119: void ...
6 years, 7 months ago (2014-05-12 21:58:39 UTC) #11
Charlie Reis
I'm still not 100% sure I understand the lifetime, but it seems to match what ...
6 years, 7 months ago (2014-05-12 22:12:51 UTC) #12
nyquist
https://codereview.chromium.org/260073009/diff/130001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc File chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc (right): https://codereview.chromium.org/260073009/diff/130001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode177 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:177: NULL; Nit: Indent. https://codereview.chromium.org/260073009/diff/130001/components/dom_distiller/DEPS File components/dom_distiller/DEPS (right): https://codereview.chromium.org/260073009/diff/130001/components/dom_distiller/DEPS#newcode2 components/dom_distiller/DEPS:2: ...
6 years, 7 months ago (2014-05-13 05:01:14 UTC) #13
Yaron
On 2014/05/12 22:12:51, Charlie Reis(OOO as of May 17) wrote: > I'm still not 100% ...
6 years, 7 months ago (2014-05-13 17:49:22 UTC) #14
Charlie Reis
On 2014/05/13 17:49:22, Yaron wrote: > On 2014/05/12 22:12:51, Charlie Reis(OOO as of May 17) ...
6 years, 7 months ago (2014-05-13 22:59:48 UTC) #15
Yaron
Thanks Charlie. Ignored the navigation and addressed Tommy's comments in 2nd oldest patchset. Last patchset ...
6 years, 7 months ago (2014-05-14 17:42:33 UTC) #16
Yaron
Thanks Charlie. Ignored the navigation and addressed Tommy's comments in 2nd oldest patchset. Last patchset ...
6 years, 7 months ago (2014-05-14 17:42:48 UTC) #17
Yaron
Thanks Charlie. Ignored the navigation and addressed Tommy's comments in 2nd oldest patchset. Last patchset ...
6 years, 7 months ago (2014-05-14 17:42:57 UTC) #18
nyquist
lgtm
6 years, 7 months ago (2014-05-14 17:53:10 UTC) #19
nyquist
https://codereview.chromium.org/260073009/diff/170001/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/260073009/diff/170001/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode316 components/dom_distiller/content/dom_distiller_viewer_source.cc:316: std::string* path) const { Oh, and for future reference, ...
6 years, 7 months ago (2014-05-14 17:54:34 UTC) #20
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 7 months ago (2014-05-14 18:12:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/260073009/170001
6 years, 7 months ago (2014-05-14 18:12:27 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 22:55:49 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 23:00:56 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/16615)
6 years, 7 months ago (2014-05-14 23:00:56 UTC) #25
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 7 months ago (2014-05-14 23:36:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/260073009/170001
6 years, 7 months ago (2014-05-14 23:37:24 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 01:07:37 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 01:10:09 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/16653)
6 years, 7 months ago (2014-05-15 01:10:09 UTC) #30
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 7 months ago (2014-05-15 01:10:43 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/260073009/170001
6 years, 7 months ago (2014-05-15 01:13:02 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 02:02:54 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 02:06:41 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/16666)
6 years, 7 months ago (2014-05-15 02:06:42 UTC) #35
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 7 months ago (2014-05-15 02:27:08 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/260073009/170001
6 years, 7 months ago (2014-05-15 02:28:50 UTC) #37
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 08:03:25 UTC) #38
Message was sent while issue was closed.
Change committed as 270622

Powered by Google App Engine
This is Rietveld 408576698