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

Issue 1936613002: Implementing recent pages snapshot capture. (Closed)

Created:
4 years, 7 months ago by Dmitry Titov
Modified:
4 years, 7 months ago
Reviewers:
dewittj
CC:
chromium-reviews, fgorski+watch_chromium.org, romax+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, 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

Implementing recent pages snapshot capture. This adds functinoality to RecenttabHelper that: - uses SnapshotController to detect when page should be captrued. - uses simple algorithm to remove previous snapshot and limit number of current snapshots - captures the page using MHTML Archiver and Offline Page Model. Also has a couple of simple tests. BUG=606106 Committed: https://crrev.com/4410eaea5c56187d7a2d4c72694935245368ac29 Cr-Commit-Position: refs/heads/master@{#391702}

Patch Set 1 #

Total comments: 22

Patch Set 2 : use weakPtr invalidation to cancel tasks #

Patch Set 3 : clang #

Patch Set 4 : more clang #

Patch Set 5 : review comments #

Total comments: 1

Patch Set 6 : comment update #

Patch Set 7 : updated #

Patch Set 8 : clang is my friend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -20 lines) Patch
M chrome/browser/android/offline_pages/recent_tab_helper.h View 1 2 3 4 5 6 2 chunks +64 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 3 4 5 6 1 chunk +193 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc View 1 2 3 4 5 6 7 1 chunk +161 lines, -4 lines 0 comments Download
M components/offline_pages/snapshot_controller.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M components/offline_pages/snapshot_controller.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M components/offline_pages/snapshot_controller_unittest.cc View 4 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Dmitry Titov
4 years, 7 months ago (2016-04-29 18:29:22 UTC) #2
dewittj
Sending out comments from ps 1, will review the most latest ps when you reply. ...
4 years, 7 months ago (2016-04-29 20:29:31 UTC) #3
Dmitry Titov
Addressed/replied, PTAL https://codereview.chromium.org/1936613002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc File chrome/browser/android/offline_pages/recent_tab_helper.cc (right): https://codereview.chromium.org/1936613002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc#newcode93 chrome/browser/android/offline_pages/recent_tab_helper.cc:93: // - snapshot the current web contents ...
4 years, 7 months ago (2016-04-30 00:13:08 UTC) #4
dewittj
lgtm https://codereview.chromium.org/1936613002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc File chrome/browser/android/offline_pages/recent_tab_helper.cc (right): https://codereview.chromium.org/1936613002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc#newcode93 chrome/browser/android/offline_pages/recent_tab_helper.cc:93: // - snapshot the current web contents On ...
4 years, 7 months ago (2016-05-02 19:54:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936613002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936613002/100001
4 years, 7 months ago (2016-05-03 17:04:17 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/64299)
4 years, 7 months ago (2016-05-03 17:24:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936613002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936613002/120001
4 years, 7 months ago (2016-05-04 21:29:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/61256)
4 years, 7 months ago (2016-05-04 22:30:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936613002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936613002/140001
4 years, 7 months ago (2016-05-04 22:32:28 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-05 00:01:54 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 00:02:51 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4410eaea5c56187d7a2d4c72694935245368ac29
Cr-Commit-Position: refs/heads/master@{#391702}

Powered by Google App Engine
This is Rietveld 408576698