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

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

Issue 2833553002: Revert of [Prerender] Restore request priorities when swapped in (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.h
diff --git a/chrome/browser/prerender/prerender_contents.h b/chrome/browser/prerender/prerender_contents.h
index 3648fefd256d4ee20e671b2c8246c5e042b69038..082fa62d7a87486c97d394500d31d1123c22ae70 100644
--- a/chrome/browser/prerender/prerender_contents.h
+++ b/chrome/browser/prerender/prerender_contents.h
@@ -235,12 +235,6 @@
void AddResourceThrottle(
const base::WeakPtr<PrerenderResourceThrottle>& throttle);
- // Called when a PrerenderResourceThrottle changes a resource priority to
- // net::IDLE. The resources are reset back to their original priorities when
- // the prerender contents is swapped in.
- void AddIdleResource(
- const base::WeakPtr<PrerenderResourceThrottle>& throttle);
-
// Increments the number of bytes fetched over the network for this prerender.
void AddNetworkBytes(int64_t bytes);
@@ -378,8 +372,6 @@
// Resources that are throttled, pending a prerender use. Can only access a
// throttle on the IO thread.
std::vector<base::WeakPtr<PrerenderResourceThrottle> > resource_throttles_;
- // Resources for which the priority was lowered to net::IDLE.
- std::vector<base::WeakPtr<PrerenderResourceThrottle>> idle_resources_;
// A running tally of the number of bytes this prerender has caused to be
// transferred over the network for resources. Updated with AddNetworkBytes.
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698