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

Issue 2412823002: Improve the page download: (Closed)

Created:
4 years, 2 months ago by Dmitry Titov
Modified:
4 years, 2 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve the page download: - observe page loading in the current tab and captrue it when it is ready directly from the tab. - if tab renavigates/closes, pass the request back to RequestCoordinator BUG=654955 Committed: https://crrev.com/02d38c0b50c55dadb98039dbc58a70ad2c7c8a15 Cr-Commit-Position: refs/heads/master@{#425077}

Patch Set 1 #

Total comments: 6

Patch Set 2 : merge #

Total comments: 28

Patch Set 3 : CR feedback and fix test #

Patch Set 4 : fix compile #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -100 lines) Patch
M chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc View 1 2 3 6 chunks +49 lines, -67 lines 1 comment Download
M chrome/browser/android/offline_pages/recent_tab_helper.h View 1 2 3 chunks +43 lines, -6 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 3 7 chunks +99 lines, -14 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc View 2 chunks +16 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 1 chunk +13 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (21 generated)
Dmitry Titov
4 years, 2 months ago (2016-10-12 00:40:40 UTC) #3
Dmitry Titov
+Justin to look at offline_page_download_bridge.cc - some renaming and logic change.
4 years, 2 months ago (2016-10-12 00:56:14 UTC) #8
dewittj
cool patch, I think this is a great change. https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc File chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc (left): https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#oldcode91 chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:91: ...
4 years, 2 months ago (2016-10-12 03:27:27 UTC) #13
Pete Williamson
https://codereview.chromium.org/2412823002/diff/1/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc File chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc (right): https://codereview.chromium.org/2412823002/diff/1/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#newcode69 chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:69: void SavePageIfStillOnSamePage(const GURL& original_url, I thought our bridges were ...
4 years, 2 months ago (2016-10-12 17:33:36 UTC) #14
Dmitry Titov
PTAL https://codereview.chromium.org/2412823002/diff/1/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc File chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc (right): https://codereview.chromium.org/2412823002/diff/1/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#newcode69 chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:69: void SavePageIfStillOnSamePage(const GURL& original_url, On 2016/10/12 17:33:36, Pete ...
4 years, 2 months ago (2016-10-12 23:11:14 UTC) #17
Pete Williamson
lgtm https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc File chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc (right): https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc#newcode314 chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc:314: TEST_F(RecentTabHelperTest, DownloadRequest) { On 2016/10/12 23:11:14, Dmitry Titov ...
4 years, 2 months ago (2016-10-12 23:31:41 UTC) #20
Dmitry Titov
On 2016/10/12 23:31:41, Pete Williamson wrote: > lgtm > > https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc > File chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc (right): ...
4 years, 2 months ago (2016-10-13 00:11:41 UTC) #21
dewittj
lgtm, thanks https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc File chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc (right): https://codereview.chromium.org/2412823002/diff/20001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#newcode84 chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:84: void SavePageIfStillOnSamePage(const GURL& original_url, On 2016/10/12 23:11:14, ...
4 years, 2 months ago (2016-10-13 17:25:37 UTC) #26
Dmitry Titov
> > https://codereview.chromium.org/2412823002/diff/60001/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc#newcode89 > chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc:89: > int64_t request_id = OfflinePageModel::kInvalidOfflineId; > is request id === ...
4 years, 2 months ago (2016-10-13 17:32:19 UTC) #27
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/2412823002/60001
4 years, 2 months ago (2016-10-13 17:33:30 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-13 17:39:39 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 17:41:15 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/02d38c0b50c55dadb98039dbc58a70ad2c7c8a15
Cr-Commit-Position: refs/heads/master@{#425077}

Powered by Google App Engine
This is Rietveld 408576698