-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert of [Prerender] Restore request priorities when swapped in (pat…
…chset #1 id:1 of https://codereview.chromium.org/2832473002/ ) Reason for revert: Caused compile failures on Mac and Windows Beta official desktop continuous waterfall. https://bugs.chromium.org/p/chromium/issues/detail?id=713223 Original issue's description: > [Prerender] Restore request priorities when swapped in > > Requests from prerendered contents have a IDLE priority, in order not to slow > down visible pages. > However, when the prerendered contents become visible, the request priorities > were not reset back to their correct values, leading to bad prerendering > performance. > > In this CL, the priority management for prerender requests is moved to the > PrerenderResourceThrottle/PrerendereContents. > The original priorities are stored in the throttle, and restored when the > prerender contents swaps in. > A new public function is added to ResourceDispatcherHost to update a request > priority, and its implementation reuses the existing code that updates the image > priorities. > > The prerender contents keeps a list of all the network resources that were > started while the prerender is hidden. If this proves to be too large, pruning > the list when responses are received should be doable. > > BUG=705955 > > Review-Url: https://codereview.chromium.org/2807163002 > Cr-Commit-Position: refs/heads/master@{#464728} > (cherry picked from commit d3bc614) > > Review-Url: https://codereview.chromium.org/2832473002 . > Cr-Commit-Position: refs/branch-heads/3071@{#48} > Cr-Branched-From: a106f0a-refs/heads/master@{#464641} > Committed: https://chromium.googlesource.com/chromium/src/+/d4b0c9f58ec981f98342cb8438da1a69bb489a06 [email protected] # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=705955 Review-Url: https://codereview.chromium.org/2833553002 Cr-Commit-Position: refs/branch-heads/3071@{#58} Cr-Branched-From: a106f0a-refs/heads/master@{#464641}
- Loading branch information
Showing
14 changed files
with
85 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.