|
Add support for multiple asynchronous browser startups.
This CL adds support for easily doing multiple asynchronous startups
where every startup request can get their own callback executed. This
makes the logic in at the caller very simple by for example extracting
away usage of AndroidBrowserProcess and catching ProcessInitException.
BrowserStartupConfig is renamed to BrowserStartupController, since it
now does more than just keep the configuration. The
BrowserStartupController is called from native when the native startup
is complete. It keeps an ordered list of caller's callbacks which will
all be called when initialization is finished. If initialization has
already been completed before the async startup request is called,
the callback is called immediately.
The first users of this are content shell and chromium testshell.
BUG= 260574
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218562
Total comments: 4
Total comments: 25
Total comments: 16
Total comments: 5
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+684 lines, -167 lines) |
Patch |
 |
M |
chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
|
View
|
1
2
3
4
5
7
|
3 chunks |
+21 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/android/testshell/res/values/strings.xml
|
View
|
1
2
3
4
5
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/browser_jni_registrar.cc
|
View
|
1
2
3
7
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
D |
content/browser/android/browser_startup_config.h
|
View
|
1
2
3
7
|
1 chunk |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
D |
content/browser/android/browser_startup_config.cc
|
View
|
1
2
3
7
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
 |
A + |
content/browser/android/browser_startup_controller.h
|
View
|
1
2
3
7
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
content/browser/android/browser_startup_controller.cc
|
View
|
1
2
3
7
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/content_jni.gypi
|
View
|
1
2
3
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
|
View
|
1
2
3
4
5
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
D |
content/public/android/java/src/org/chromium/content/browser/BrowserStartupConfig.java
|
View
|
1
2
3
7
|
1 chunk |
+0 lines, -43 lines |
0 comments
|
Download
|
 |
A |
content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+235 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+357 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
content/shell/android/shell_apk/res/values/strings.xml
|
View
|
1
2
3
4
5
7
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+50 lines, -37 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|