Chromium Code Reviews
DescriptionImplement renderer importance API for WebView
The renderer importance API allows a WebView to declare which priority
from the set {HIGH, LOW, WAIVED} its associated renderer process
should be bound with. HIGH corresponds to binding with
Context.BIND_IMPORTANT, LOW corresponds to keeping a normal binding
to the service. WAIVED corresponds to binding with BIND_WAIVE_PRIORITY.
Additionally, the priority can be automatically lowered to WAIVE when
the WebView instance is not visible.
When multiple WebViews are assocated with the same renderer, the
renderer will receive a priority equal to the maximum over the set
of associated WebViews.
The default is HIGH, without visibility management, for backwards
compatibility with single-process.
BUG=667531
Review-Url: https://codereview.chromium.org/2650753002
Cr-Commit-Position: refs/heads/master@{#446636}
Committed: https://chromium.googlesource.com/chromium/src/+/401a3c143672daee741c309a213aa690673cf1bd
Patch Set 1 #Patch Set 2 : Add tests. Fix bug exposed by tests. Move renderer priority -> binding manager logic to java. #Patch Set 3 : plumb through getters; make members needed by downstream subclasses package visible #Patch Set 4 : fix tests #Patch Set 5 : clean up unused local #Messages
Total messages: 35 (27 generated)
|