|
Use Mojo pipes to signal sync IPC events
This transitions legacy sync IPC to use Mojo message pipe handles
for all of its sync event waiting. This is a necessary precursor to
mixing sync legacy IPC with sync Mojo IPC, and is also required to
support correct FIFO between ChannelProxy and Mojo Channel
associated interfaces.
Specifically:
- Introduces a new IPC::MojoEvent type which is a WaitableEvent-like
interface around a local message pipe.
- Moves mojo::SyncHandleRegistry out of internal bindings API and
exposes it publicly.
- Replaces most uses of WaitableEvent with MojoEvent for sync IPC
- Replaces all use of WaitableEvent::WaitMany for sync IPC
with mojo::SyncHandleRegistry::WatchAllHandles.
- Cleans up some unnecessary complexity in SyncMessage since
pump_messages_event() was only being used with a single
global event that's always signaled.
The system's behavior should be effectively unchanged by this CL,
but legacy sync IPC and mojo sync IPC can now be mixed freely.
BUG= 612500
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/97912711c72d91e50bf6999f6842f9de1c05fab1
Committed: https://crrev.com/6d7be626fdfc8e1e85bc2faa789a12a3ae3960a1
Cr-Original-Commit-Position: refs/heads/master@{#399848}
Cr-Commit-Position: refs/heads/master@{#399963}
Total comments: 2
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1151 lines, -554 lines) |
Patch |
|
M |
chrome/browser/printing/cloud_print/test/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/nacl_helper_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/nacl_main.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl_nonsfi.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
4 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
gpu/gpu.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gpu/ipc/service/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ipc/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
5 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
|
M |
ipc/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
4 chunks |
+21 lines, -1 line |
0 comments
|
Download
|
|
M |
ipc/ipc.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_nacl.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_channel.h
|
View
|
1
|
7 chunks |
+18 lines, -15 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_channel.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
17 chunks |
+177 lines, -85 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_message.h
|
View
|
1
|
4 chunks |
+12 lines, -25 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_message.cc
|
View
|
|
3 chunks |
+1 line, -22 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_message_filter.h
|
View
|
1
|
3 chunks |
+15 lines, -3 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_message_filter.cc
|
View
|
1
|
5 chunks |
+53 lines, -11 lines |
0 comments
|
Download
|
|
A |
ipc/mojo_event.h
|
View
|
1
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
A |
ipc/mojo_event.cc
|
View
|
1
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/run_all_unittests.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/edk/system/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
mojo/mojo_edk.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
4 chunks |
+57 lines, -101 lines |
0 comments
|
Download
|
|
A |
mojo/mojo_edk.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1 chunk |
+115 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/mojo_edk_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
5 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
mojo/mojo_public.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
7 chunks |
+57 lines, -266 lines |
0 comments
|
Download
|
|
A |
mojo/mojo_public.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
1 chunk |
+150 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/mojo_public_nacl.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
|
A |
mojo/mojo_public_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
1 chunk |
+162 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/sync_handle_registry.cc
|
View
|
|
3 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/sync_handle_watcher.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
mojo/public/cpp/bindings/sync_handle_registry.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/system/watcher.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ppapi/nacl_irt/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/nacl_irt/plugin_startup.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/native_client.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/ppapi_internal.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/ppapi_proxy_nacl.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/ppapi_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/DEPS
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppapi_perftests.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 68 (33 generated)
|