|
Refactoring ChildProcessConnection.
Splitting the ChildProcessConnectionImpl class in 2 and changing it to
an abstract class instead of an interface.
ChildProcessConnections can now be either:
- ImportantChildProcessConnection: bound BIND_IMPORTANT and used for
the GPU process. This is equivalent to the previous
alwaysInForeground ChildProcessConnectionImpl.
- ManagedChildProcessConnection: managed by the BindingManager.
With that split, only ManagedChildProcessConnection are now passed to
the BindingManager.
Also changing the ChildProcessLauncherHelper to keep a reference to the
ChildProcessConnection so that it can determine if it is OOM protected
without the help of the BindingManager. As a result, the BindingManager
does not keep ChildProcessConnections around when they are cleared.
Also changed BindingManagerImplTest to exercise the actual connection
code (instead of mocking some of the logic in the test).
BUG= 689758
Review-Url: https://codereview.chromium.org/2828793002
Cr-Commit-Position: refs/heads/master@{#467166}
Committed: https://chromium.googlesource.com/chromium/src/+/faaae321d190728d93ff5b51c961c3d28c016ae5
Total comments: 22
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+804 lines, -1334 lines) |
Patch |
|
M |
android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java
|
View
|
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
|
M |
build/android/lint/suppressions.xml
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerIntegrationTest.java
|
View
|
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/public/android/BUILD.gn
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A + |
content/public/android/java/src/org/chromium/content/browser/BaseChildProcessConnection.java
|
View
|
1
2
3
|
12 chunks |
+230 lines, -275 lines |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/BindingManager.java
|
View
|
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/BindingManagerImpl.java
|
View
|
1
|
14 chunks |
+30 lines, -52 lines |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/ChildConnectionAllocator.java
|
View
|
|
7 chunks |
+21 lines, -16 lines |
0 comments
|
Download
|
|
D |
content/public/android/java/src/org/chromium/content/browser/ChildProcessConnection.java
|
View
|
|
1 chunk |
+0 lines, -154 lines |
0 comments
|
Download
|
|
D |
content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java
|
View
|
|
1 chunk |
+0 lines, -588 lines |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
|
View
|
|
15 chunks |
+42 lines, -38 lines |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncherHelper.java
|
View
|
1
2
|
2 chunks |
+30 lines, -7 lines |
0 comments
|
Download
|
|
A |
content/public/android/java/src/org/chromium/content/browser/ImportantChildProcessConnection.java
|
View
|
1
2
3
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/android/java/src/org/chromium/content/browser/LauncherThread.java
|
View
|
|
3 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
|
A |
content/public/android/java/src/org/chromium/content/browser/ManagedChildProcessConnection.java
|
View
|
1
2
3
4
|
1 chunk |
+225 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java
|
View
|
|
16 chunks |
+28 lines, -29 lines |
0 comments
|
Download
|
|
M |
content/public/android/junit/src/org/chromium/content/browser/BindingManagerImplTest.java
|
View
|
1
2
|
24 chunks |
+116 lines, -140 lines |
0 comments
|
Download
|
|
M |
content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ChildProcessLauncherTestHelperService.java
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 46 (35 generated)
|