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

Issue 2650753002: Implement renderer importance API for WebView (Closed)

Created:
3 years, 11 months ago by Tobias Sargeant
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, boliu, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, michaelbai, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -10 lines) Patch
M android_webview/BUILD.gn View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 4 chunks +23 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwRenderProcessGoneDetail.java View 1 chunk +10 lines, -1 line 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwRendererPriorityManager.java View 1 1 chunk +24 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 1 2 3 4 3 chunks +121 lines, -1 line 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/BUILD.gn View 3 chunks +9 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 6 chunks +32 lines, -1 line 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 13 chunks +107 lines, -2 lines 0 comments Download
A android_webview/native/aw_renderer_priority_manager.h View 1 chunk +42 lines, -0 lines 0 comments Download
A android_webview/native/aw_renderer_priority_manager.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (27 generated)
Tobias Sargeant
3 years, 11 months ago (2017-01-23 15:47:31 UTC) #2
jochen (gone - plz use gerrit)
please add tests
3 years, 11 months ago (2017-01-23 15:55:46 UTC) #3
Torne
This generally LGTM, but it would be good if we can come up with a ...
3 years, 11 months ago (2017-01-24 12:46:35 UTC) #4
Tobias Sargeant
On 2017/01/24 12:46:35, Torne wrote: > This generally LGTM, but it would be good if ...
3 years, 11 months ago (2017-01-24 15:04:37 UTC) #5
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-24 17:25:15 UTC) #6
Torne
still LGTM :)
3 years, 11 months ago (2017-01-26 12:15:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2650753002/100001
3 years, 10 months ago (2017-01-27 10:31:46 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 10:36:11 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/401a3c143672daee741c309a213a...

Powered by Google App Engine
This is Rietveld 408576698