|
Factor stuff from ApplicationImpl out to a new class, ApplicationImplBase.
ApplicationImpl is now a rather dumb class that just calls its
ApplicationDelegate.
Using base/implementation classes is preferable to the delegate pattern
because:
* It's simpler (see below).
* With the delgate pattern, the impl and the delegate both need pointers
to each other. And so there are lifetime problems/considerations.
* The delegate just ends up calling into the impl a lot.
Unfortunately, it's rather hard (impossible) to use ApplicationImplBase
right now (as intended): I'll need to refactor
ApplicationRunner(Chromium) to not just instantiate ApplicationImpl,
etc.
(I'll also need a story for the crazy that is
ApplicationImpl(Base)::Terminate().)
R=vardhan@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/0a68a8d847fc6f6fd3c494992c4ab6bd60bddcb6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+140 lines, -102 lines) |
Patch |
 |
M |
examples/bank_app/customer.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/application/application_runner_chromium.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/application/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/application/application_impl.h
|
View
|
|
3 chunks |
+8 lines, -38 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/application/application_impl_base.h
|
View
|
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/application/lib/application_impl.cc
|
View
|
|
1 chunk |
+6 lines, -43 lines |
0 comments
|
Download
|
 |
A + |
mojo/public/cpp/application/lib/application_impl_base.cc
|
View
|
|
2 chunks |
+17 lines, -19 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/application/lib/application_runner.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
2 comments
|
Download
|
 |
M |
mojo/ui/view_provider_app.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
services/nacl/nonsfi/content_handler_main_nexe.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
services/nacl/nonsfi/content_handler_main_pexe.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
services/notifications/apptests/notifications_apptest.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 7 (2 generated)
|