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

Issue 1920603002: SnapshotController implementation. It will be used in WebContentsObservers for Offline Pages - to d… (Closed)

Created:
4 years, 8 months ago by Dmitry Titov
Modified:
4 years, 7 months ago
Reviewers:
fgorski
CC:
chromium-reviews, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SnapshotController implementation. It will be used in WebContentsObservers for Offline Pages - to detect the right moment to make a snapshot. It will take input and generate a sequence of StartSnapshot calls (typically 1 or 2) to its Client. This is initial implementation, in the future we might update the logic to rely not on a timer and onload event, but rather on some more specific indicators (meaningful layout or proportion of resources loaded). BUG=606106 Committed: https://crrev.com/18a6b28cc90dfc6ecfeb075804a67f74e5c42f9d Cr-Commit-Position: refs/heads/master@{#389843}

Patch Set 1 #

Patch Set 2 : Modified comments and added a test. #

Patch Set 3 : merge conflict #

Patch Set 4 : hi clang! #

Total comments: 18

Patch Set 5 : feedback addressed #

Total comments: 1

Patch Set 6 : renaming constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -0 lines) Patch
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A components/offline_pages/snapshot_controller.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A components/offline_pages/snapshot_controller.cc View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A components/offline_pages/snapshot_controller_unittest.cc View 1 2 3 4 1 chunk +160 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Dmitry Titov
4 years, 8 months ago (2016-04-23 02:04:13 UTC) #2
fgorski
https://codereview.chromium.org/1920603002/diff/60001/components/offline_pages/snapshot_controller.cc File components/offline_pages/snapshot_controller.cc (right): https://codereview.chromium.org/1920603002/diff/60001/components/offline_pages/snapshot_controller.cc#newcode8 components/offline_pages/snapshot_controller.cc:8: #include "base/files/file_util.h" do you use it here? https://codereview.chromium.org/1920603002/diff/60001/components/offline_pages/snapshot_controller.cc#newcode14 components/offline_pages/snapshot_controller.cc:14: ...
4 years, 8 months ago (2016-04-25 04:28:46 UTC) #3
Dmitry Titov
Thanks for review! Addressed, PTAL. https://codereview.chromium.org/1920603002/diff/60001/components/offline_pages/snapshot_controller.cc File components/offline_pages/snapshot_controller.cc (right): https://codereview.chromium.org/1920603002/diff/60001/components/offline_pages/snapshot_controller.cc#newcode8 components/offline_pages/snapshot_controller.cc:8: #include "base/files/file_util.h" On 2016/04/25 ...
4 years, 7 months ago (2016-04-26 01:45:30 UTC) #4
fgorski
lgtm, please fix the const name. https://codereview.chromium.org/1920603002/diff/80001/components/offline_pages/snapshot_controller.cc File components/offline_pages/snapshot_controller.cc (right): https://codereview.chromium.org/1920603002/diff/80001/components/offline_pages/snapshot_controller.cc#newcode16 components/offline_pages/snapshot_controller.cc:16: const size_t DELAY_AFTER_DOCUMENT_AVAILABLE ...
4 years, 7 months ago (2016-04-26 02:45:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1920603002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1920603002/100001
4 years, 7 months ago (2016-04-26 18:20:45 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-04-26 19:15:18 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-04-26 19:16:51 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/18a6b28cc90dfc6ecfeb075804a67f74e5c42f9d
Cr-Commit-Position: refs/heads/master@{#389843}

Powered by Google App Engine
This is Rietveld 408576698