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

Unified Diff: chrome/browser/prerender/prerender_contents.h

Issue 2711693002: [Offline Pages] Make prerenderer notify us of network progress. (Closed)
Patch Set: Created 3 years, 10 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/prerender/prerender_contents.h
diff --git a/chrome/browser/prerender/prerender_contents.h b/chrome/browser/prerender/prerender_contents.h
index 1926ce3a0fe8e7cf5f247745a22367c13a326385..59b0ad4880f0e868ae493a587c7deaeaf12e7fb0 100644
--- a/chrome/browser/prerender/prerender_contents.h
+++ b/chrome/browser/prerender/prerender_contents.h
@@ -89,6 +89,10 @@ class PrerenderContents : public content::NotificationObserver,
// destroyed.
virtual void OnPrerenderStop(PrerenderContents* contents) {}
+ // Signals that a resource finished loading and altered the running byte
+ // count.
+ virtual void OnPrerenderNetworkBytesChanged(PrerenderContents* contents) {}
+
protected:
Observer() {}
virtual ~Observer() = 0;
@@ -238,6 +242,8 @@ class PrerenderContents : public content::NotificationObserver,
return prerendering_has_been_cancelled_;
}
+ int64_t network_bytes() { return network_bytes_; }
pasko-google - do not use 2017/02/22 13:32:44 I think it would be useful to link from here to so
Dmitry Titov 2017/02/23 04:27:54 Done. I tried.
pasko 2017/02/24 15:10:28 the new description is OK. I asked for a more deta
Dmitry Titov 2017/02/24 19:09:13 Acknowledged.
+
protected:
PrerenderContents(PrerenderManager* prerender_manager,
Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698