|
Simplify the ApplicationLoader interface in preparation for changes.
The ApplicationLoader interface has become very complicated because it
provides a way for clients of ApplicationManager to do two different
things in response to a connection request.
1. Bind to an Application implementation.
2. Delegate back to ApplicationManager with details about a
ContentHandler to use instead.
ApplicationLoader was originally designed to do only #1. I extended it
to do #2 in the misguided thought that it would be nice for
ApplicationLoader implementations to be able to provide content for a
ContentHandler as well actual applications.
However, this second use case was never needed and adds lots of
complexity.
I think it will simplify things dramatically to move URL fetching and
ContentHandler handling into application manager directly. If we ever
need to generalize that behavior, we can create a separate interface
from ApplicationLoader for it at that time.
This CL is a first step that is pretty mechanical in nature, but I
think is still an improvement. Suggest reviewing in the following
order:
- application_loader.*
- application_manager.*
- everything else
The next change will break apart DynamicApplicationLoader into pieces
which will be used from within ApplicationManager.
R=davemoore@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/bfc1118ae801b4142f4027cd3cb1ab079c325f66
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+195 lines, -868 lines) |
Patch |
 |
M |
PRESUBMIT.py
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/window_manager/window_manager_api_unittest.cc
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
shell/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
shell/android/android_handler_loader.h
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
shell/android/android_handler_loader.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
shell/android/background_application_loader.h
|
View
|
|
2 chunks |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
shell/android/background_application_loader.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
shell/android/background_application_loader_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
shell/android/native_viewport_application_loader.h
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
shell/android/native_viewport_application_loader.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
shell/android/ui_application_loader_android.h
|
View
|
1
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
shell/android/ui_application_loader_android.cc
|
View
|
1
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
shell/application_manager/application_loader.h
|
View
|
1
2
3
4
|
2 chunks |
+24 lines, -26 lines |
0 comments
|
Download
|
 |
D |
shell/application_manager/application_loader.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
shell/application_manager/application_manager.h
|
View
|
1
2
3
4
|
5 chunks |
+27 lines, -14 lines |
0 comments
|
Download
|
 |
M |
shell/application_manager/application_manager.cc
|
View
|
1
2
3
4
|
4 chunks |
+63 lines, -34 lines |
0 comments
|
Download
|
 |
M |
shell/application_manager/application_manager_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
shell/context.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
shell/context.cc
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
shell/dynamic_application_loader.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -71 lines |
0 comments
|
Download
|
 |
M |
shell/dynamic_application_loader.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -506 lines |
0 comments
|
Download
|
 |
M |
shell/dynamic_application_loader_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -95 lines |
0 comments
|
Download
|
 |
M |
shell/external_application_listener_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
shell/native_application_loader.h
|
View
|
1
2
3
4
|
3 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
A + |
shell/native_application_loader.cc
|
View
|
1
2
3
4
|
9 chunks |
+17 lines, -24 lines |
0 comments
|
Download
|
 |
A + |
shell/native_application_loader_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
Total messages: 9 (3 generated)
|