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

Issue 130543003: Store page no for distilled pages undergoing distillation. (Closed)

Created:
6 years, 10 months ago by shashi
Modified:
6 years, 10 months ago
Reviewers:
cjhopman, Yaron, nyquist
CC:
chromium-reviews
Visibility:
Public.

Description

Store page no for distilled pages undergoing distillation. In order to support distillation of previous pages and enable meaningful incremental updates for viewers, distiller needs to maintain page number information for pages under distillation. This information will be used to add support for incremental updates and distilling previous pages of an article. BUG=288015 TEST=Covered by existing tests + added tests for failure and page limit for distiller. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251546

Patch Set 1 : #

Patch Set 2 : #

Total comments: 34

Patch Set 3 : Fix compile on Android clang: s/const_iterator/iterator. #

Patch Set 4 : Address Chris' comments. #

Patch Set 5 : Add tests for distillation failure. #

Patch Set 6 : Partition internal states into 3 sets: started, pending, finished. #

Total comments: 16

Patch Set 7 : Address comments. #

Total comments: 11

Patch Set 8 : fix nitz. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -58 lines) Patch
M components/dom_distiller/core/distiller.h View 1 2 3 4 5 6 7 1 chunk +71 lines, -10 lines 0 comments Download
M components/dom_distiller/core/distiller.cc View 1 2 3 4 5 6 7 3 chunks +135 lines, -47 lines 0 comments Download
M components/dom_distiller/core/distiller_unittest.cc View 1 2 3 4 5 6 7 2 chunks +113 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
shashi
6 years, 10 months ago (2014-02-11 22:40:56 UTC) #1
cjhopman
Comments on the description: My understanding is that this is actually only needed to support ...
6 years, 10 months ago (2014-02-12 20:39:09 UTC) #2
shashi
PTAL https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.cc#newcode64 components/dom_distiller/core/distiller.cc:64: if (!IsValidPageNo(page_no) && url.is_valid() && On 2014/02/12 20:39:09, ...
6 years, 10 months ago (2014-02-13 01:03:10 UTC) #3
cjhopman
https://codereview.chromium.org/130543003/diff/70001/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://codereview.chromium.org/130543003/diff/70001/components/dom_distiller/core/distiller.cc#newcode141 components/dom_distiller/core/distiller.cc:141: in_progress_pages_.erase(page_no); On 2014/02/13 01:03:11, shashi wrote: > On 2014/02/12 ...
6 years, 10 months ago (2014-02-13 02:48:47 UTC) #4
shashi
PTAL https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.cc#newcode141 components/dom_distiller/core/distiller.cc:141: in_progress_pages_.erase(page_no); I am not sure about the correct ...
6 years, 10 months ago (2014-02-13 20:09:50 UTC) #5
cjhopman
https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.h File components/dom_distiller/core/distiller.h (right): https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.h#newcode142 components/dom_distiller/core/distiller.h:142: base::hash_set<int> in_progress_pages_; On 2014/02/13 20:09:51, shashi wrote: > in_progress_pages_ ...
6 years, 10 months ago (2014-02-13 20:43:19 UTC) #6
shashi
PTAL https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.h File components/dom_distiller/core/distiller.h (right): https://chromiumcodereview.appspot.com/130543003/diff/70001/components/dom_distiller/core/distiller.h#newcode142 components/dom_distiller/core/distiller.h:142: base::hash_set<int> in_progress_pages_; On 2014/02/13 20:43:19, cjhopman wrote: > ...
6 years, 10 months ago (2014-02-13 21:57:25 UTC) #7
cjhopman
https://codereview.chromium.org/130543003/diff/700001/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://codereview.chromium.org/130543003/diff/700001/components/dom_distiller/core/distiller.cc#newcode122 components/dom_distiller/core/distiller.cc:122: DCHECK(IsPageNumberInUse(page_no)); This could be more specific and check that ...
6 years, 10 months ago (2014-02-14 20:53:52 UTC) #8
shashi
PTAL https://codereview.chromium.org/130543003/diff/700001/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://codereview.chromium.org/130543003/diff/700001/components/dom_distiller/core/distiller.cc#newcode122 components/dom_distiller/core/distiller.cc:122: DCHECK(IsPageNumberInUse(page_no)); On 2014/02/14 20:53:52, cjhopman wrote: > This ...
6 years, 10 months ago (2014-02-14 23:25:28 UTC) #9
cjhopman
Thanks, this is much easier for me to follow. lgtm with some nits https://codereview.chromium.org/130543003/diff/910001/components/dom_distiller/core/distiller.cc File ...
6 years, 10 months ago (2014-02-15 02:44:15 UTC) #10
shashi
https://codereview.chromium.org/130543003/diff/910001/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://codereview.chromium.org/130543003/diff/910001/components/dom_distiller/core/distiller.cc#newcode160 components/dom_distiller/core/distiller.cc:160: AddToDistillationQueue(page_num + 1, next_page_url); On 2014/02/15 02:44:15, cjhopman wrote: ...
6 years, 10 months ago (2014-02-15 03:15:35 UTC) #11
shashi
The CQ bit was checked by shashishekhar@chromium.org
6 years, 10 months ago (2014-02-15 03:15:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/130543003/1030001
6 years, 10 months ago (2014-02-15 03:16:31 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 05:45:03 UTC) #14
Message was sent while issue was closed.
Change committed as 251546

Powered by Google App Engine
This is Rietveld 408576698