forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 Review-Url: https://codereview.chromium.org/2033243003 Cr-Commit-Position: refs/heads/master@{#399848}
- Loading branch information
Showing
47 changed files
with
1,213 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
include_rules = [ | ||
# Service-side mockup tests need service classes to mock. | ||
"+chrome/service", | ||
|
||
"+mojo/edk/embedder", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
include_rules = [ | ||
"+crypto", | ||
"+mojo/edk/embedder", | ||
"+mojo/public", | ||
# For ipc_channel_nacl.cc: | ||
"+native_client/src/public", | ||
"+sandbox/mac/seatbelt.h", | ||
] | ||
|
||
specific_include_rules = { | ||
"run_all_unittests\.cc": [ | ||
"+mojo/edk/embedder", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.