|
Mojo: AsyncWaiter and mojo/public/environment
Summary of changes:
o BindingsSupport is gone:
- mojo/public/bindings/lib depends on mojo/public/environment/,
which is also a static library.
- mojo/public/environment provides a default implementation of
MojoAsyncWaiter (replacing the AsyncWait functionality of
BindingsSupport).
- mojo/public/environment provides TLS support for storing the
current Buffer* (replacing the Set/GetCurrentBuffer functionality
of BindingsSupport).
- mojo/public/environment provides the Environment class, formerly
part of mojo/public/utility/
- The standalone implementation of mojo/public/environment/ depends
on mojo/public/utility/ and assumes clients will be instantiating
RunLoops on their threads.
- The chromium-specific implementation of mojo/public/environment/
depends on mojo/common/ and assumes clients will be instantiating
MessageLoops on their threads.
- The chromium-specific implementation of mojo/public/environment/
is divided into two targets: mojo_environment_chromium and
mojo_environment_chromium_impl. The former is a static library and
the latter is a component. (This way all of the state--TLS keys--
associated with the environment is kept in a DSO when using a
component build.)
o RemotePtr and Connector may optionally be parameterized with a
MojoAsyncWaiter*, allowing users to customize how AsyncWait is
implemented for a particular usage of bindings. This is needed by
the GL library so that it can schedule work on an application
defined run loop.
o RunLoop gains a RunUntilIdle method to support tests. This allows us
to delete SimpleBindingsSupport instead of converting it over to an
implementation of MojoAsyncWaiter.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244739
Total comments: 3
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+881 lines, -879 lines) |
Patch |
 |
M |
mojo/apps/js/bindings/support.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+14 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/apps/js/bindings/waiting_callback.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/apps/js/bindings/waiting_callback.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/apps/js/main.cc
|
View
|
1
2
3
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
D |
mojo/common/bindings_support_impl.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
 |
D |
mojo/common/bindings_support_impl.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -80 lines |
0 comments
|
Download
|
 |
M |
mojo/common/common_type_converters_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+1 line, -15 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/async_waiter_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/async_waiter_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/buffer_tls.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/buffer_tls_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/buffer_tls_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
mojo/environment/default_async_waiter.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/default_async_waiter_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/default_async_waiter_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/environment.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/environment/mojo_environment_impl_export.h
|
View
|
1
2
3
4
5
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/aura_demo/aura_demo.cc
|
View
|
1
2
3
|
3 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/compositor_app/compositor_app.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/examples/sample_app/sample_app.cc
|
View
|
1
2
3
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
7 chunks |
+44 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_apps.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_examples.gypi
|
View
|
1
2
3
|
3 chunks |
+3 lines, -0 lines |
1 comment
|
Download
|
 |
M |
mojo/mojo_public.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+35 lines, -9 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_services.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/DEPS
|
View
|
1
2
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/README.md
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+24 lines, -3 lines |
0 comments
|
Download
|
 |
A |
mojo/public/bindings/lib/DEPS
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/lib/bindings_support.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
 |
D |
mojo/public/bindings/lib/bindings_support.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/lib/buffer.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/lib/connector.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/lib/connector.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+32 lines, -18 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/lib/remote_ptr.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/DEPS
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/buffer_tls.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/default_async_waiter.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/environment.h
|
View
|
1
2
3
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/standalone/DEPS
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/standalone/buffer_tls.cc
|
View
|
1
2
3
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/standalone/buffer_tls_setup.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/standalone/default_async_waiter.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+93 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/environment/standalone/environment.cc
|
View
|
1
2
3
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/system/async_waiter.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/array_unittest.cc
|
View
|
1
2
3
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/buffer_unittest.cc
|
View
|
1
2
3
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/connector_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/handle_passing_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/remote_ptr_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/sample_service_unittests.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/simple_bindings_support.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -51 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/simple_bindings_support.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -101 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tests/bindings/type_conversion_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
mojo/public/tests/environment/async_waiter_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
6 chunks |
+41 lines, -23 lines |
0 comments
|
Download
|
 |
D |
mojo/public/tests/utility/bindings_support_impl_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -112 lines |
0 comments
|
Download
|
 |
A |
mojo/public/utility/DEPS
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
D |
mojo/public/utility/bindings_support_impl.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
D |
mojo/public/utility/bindings_support_impl.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -111 lines |
0 comments
|
Download
|
 |
D |
mojo/public/utility/environment.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -32 lines |
0 comments
|
Download
|
 |
D |
mojo/public/utility/environment.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -30 lines |
0 comments
|
Download
|
 |
M |
mojo/public/utility/run_loop.h
|
View
|
1
2
3
|
2 chunks |
+16 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/public/utility/run_loop.cc
|
View
|
1
2
3
|
5 chunks |
+44 lines, -24 lines |
0 comments
|
Download
|
 |
M |
mojo/services/native_viewport/native_viewport_service.cc
|
View
|
1
2
3
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/shell/context.h
|
View
|
1
2
3
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/shell/context.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/shell/service_manager_unittest.cc
|
View
|
1
2
3
|
4 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/tools/mojob.sh
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 26 (0 generated)
|