|
Mojo C++ Bindings: Eliminiate unbound ThreadSafeInterfacePtr
Changes ThreadSafeInterfacePtr such that it is no longer possible
to create one which is unbound. Instead, it is now possible to
create one which will imminently be bound on a specific TaskRunner
but which is usable immediately.
Also introduces ThreadSafeForwarder as a reduced encapsulation of
thread-safe serialization and forwarding logic. This is used
to implement ThreadSafeInterfacePtrBase, as well as to support
immediate associated request forwarding on IPC::ChannelProxy in
a thread-safe manner, where the underlying AssociatedInterfacePtr
must remain owned by the channel's IPC::MessagePipeReader.
Finally, in order to facilitate IPC::Channel exposing ipc.mojom
types through its public interface, the //ipc:mojom target has
been folded into //ipc's component exports. Any prior dependents
on //ipc:mojom have been updated accordingly.
BUG= 682334
R=yzshen@chromium.org
TEST=ipc_tests, mojo_public_bindings_unittests
Review-Url: https://codereview.chromium.org/2668153003
Cr-Commit-Position: refs/heads/master@{#449239}
Committed: https://chromium.googlesource.com/chromium/src/+/a628d0b45d5ce49a035020d8d67e9cc9a562ecac
Total comments: 1
Total comments: 23
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+384 lines, -361 lines) |
Patch |
|
M |
chrome/browser/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/test/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/utility/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chromecast/app/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/common/BUILD.gn
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/app/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/child/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/common/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h
|
View
|
|
1 chunk |
+0 lines, -57 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_thread_impl.h
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_thread_impl.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/test/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ipc/BUILD.gn
|
View
|
1
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel.h
|
View
|
1
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_mojo.h
|
View
|
1
|
5 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_mojo.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+42 lines, -17 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_proxy.h
|
View
|
1
2
|
6 chunks |
+25 lines, -23 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_channel_proxy.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -17 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_pipe_reader.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ipc/ipc_mojo_bootstrap.h
|
View
|
1
|
2 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_mojo_bootstrap.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -17 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_mojo_bootstrap_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+51 lines, -31 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/associated_interface_ptr.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/interface_ptr.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/associated_interface_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+32 lines, -32 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/thread_safe_interface_ptr.h
|
View
|
1
2
3
4
5
|
2 chunks |
+162 lines, -126 lines |
0 comments
|
Download
|
|
M |
remoting/host/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/security_key/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/win/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 81 (65 generated)
|