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

Unified Diff: chrome/browser/android/offline_pages/prerendering_offliner.cc

Issue 2857063002: Add a way to send the resource percentage signal to the RC. (Closed)
Patch Set: CR Feedback per Dimich, BMcQuade, and CSHarrison Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/offline_pages/prerendering_offliner.cc
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner.cc b/chrome/browser/android/offline_pages/prerendering_offliner.cc
index 8a63042988fa7217dd790dd4457820188df81dbe..6520016878137c54af0b399edc92118bdb962156 100644
--- a/chrome/browser/android/offline_pages/prerendering_offliner.cc
+++ b/chrome/browser/android/offline_pages/prerendering_offliner.cc
@@ -294,6 +294,13 @@ bool PrerenderingOffliner::HandleTimeout(int64_t request_id) {
return false;
}
+void PrerenderingOffliner::ObserveResourceTracking(const ResourceDataType type,
+ int64_t started_count,
+ int64_t completed_count) {
+ // Add the signal to extra data, and use for tracking.
+ loader_->ObserveResourceTracking(type, started_count, completed_count);
+}
+
void PrerenderingOffliner::SetLoaderForTesting(
std::unique_ptr<PrerenderingLoader> loader) {
DCHECK(!loader_);

Powered by Google App Engine
This is Rietveld 408576698