|
[mojo-edk] Expose notification source to MojoWatch callbacks
This adds a flags argument to watch callbacks and exposes a flag
to indicate that the callback was invoked as a result of some
external process event (i.e. an incoming EDK IPC message). The
public C++ Watcher implementation is updated to take advantage
of this, effectively allowing us to dispatch to Mojo bindings
synchronously when they live on the IO thread and are servicing
messages from out-of-process.
BUG= 590495
Committed: https://crrev.com/6aca885ca93bb6194e67be3c62ac409745595e3c
Cr-Commit-Position: refs/heads/master@{#381767}
Total comments: 1
Total comments: 2
Total comments: 10
Total comments: 5
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+113 lines, -42 lines) |
Patch |
 |
M |
mojo/edk/system/core.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/data_pipe_consumer_dispatcher.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/data_pipe_producer_dispatcher.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/message_pipe_dispatcher.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mojo/edk/system/node_channel.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/request_context.h
|
View
|
1
2
3
4
5
|
3 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/edk/system/request_context.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+29 lines, -15 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/wait_set_dispatcher_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/watch_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/watcher.h
|
View
|
1
2
3
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/edk/system/watcher.cc
|
View
|
1
2
3
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
mojo/public/c/system/functions.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/c/system/types.h
|
View
|
1
2
3
4
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/system/watcher.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/system/watcher.cc
|
View
|
1
2
3
4
|
1 chunk |
+10 lines, -4 lines |
0 comments
|
Download
|
Total messages: 28 (6 generated)
|