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

Issue 2697963002: [Offline Pages] Make prerenderer notify us of network progress. (Closed)

Created:
3 years, 10 months ago by dewittj
Modified:
3 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Make prerenderer notify us of network progress. Today, Prerenderer is made aware of bytes that are loaded when each resource finishes, but does not expose it to observers of PrerenderContents and friends. This change allows us to track coarse-grained progress on background downloads. BUG=681269

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix test compile. #

Patch Set 3 : add some tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -21 lines) Patch
M chrome/browser/android/offline_pages/prerender_adapter.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerender_adapter.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerender_adapter_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.h View 1 2 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 2 5 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader_unittest.cc View 1 10 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 3 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_handle.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_handle.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_link_manager.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_link_manager.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_unittest.cc View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M components/offline_pages/core/downloads/download_ui_adapter.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/core/downloads/download_ui_adapter.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M components/offline_pages/core/downloads/download_ui_adapter_unittest.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
dewittj
NOT READY FOR REVIEW - except by pete :) - Here's my basic idea for ...
3 years, 10 months ago (2017-02-15 00:47:15 UTC) #2
Pete Williamson
https://codereview.chromium.org/2697963002/diff/1/chrome/browser/android/offline_pages/prerender_adapter.h File chrome/browser/android/offline_pages/prerender_adapter.h (right): https://codereview.chromium.org/2697963002/diff/1/chrome/browser/android/offline_pages/prerender_adapter.h#newcode43 chrome/browser/android/offline_pages/prerender_adapter.h:43: // Signals that a resource finished loading and altered ...
3 years, 10 months ago (2017-02-15 01:17:45 UTC) #3
dewittj
pasko: please take a brief look. I don't have tests yet because I'm hoping to ...
3 years, 10 months ago (2017-02-17 23:20:15 UTC) #7
dewittj
Added a few tests. +dimich who will take this over while I'm out.
3 years, 10 months ago (2017-02-19 20:52:47 UTC) #11
pasko
the approach sounds good on prerender side
3 years, 10 months ago (2017-02-20 16:52:15 UTC) #14
Dmitry Titov
3 years, 10 months ago (2017-02-22 00:12:42 UTC) #15
I'm taking it over per agreement with Justin while he's OOO.
Because I'm not an original uploader, I've created a new issue: 
https://codereview.chromium.org/2711693002

This issue is now closed, lets continue on that new one!

Powered by Google App Engine
This is Rietveld 408576698