DescriptionOptionally have MessagePort pass data as base::Value, part 1.
Various efforts (android webview, navigator.connect) are experimenting
with using MessagePort as a way to communicate with native code. This is
a start at refactoring MessagePort code to make this possible.
This CL changes the IPCs for MessagePort messages to pass the data as
a MessagePortMessage struct, adding support to the renderer side
MessagePort code to support both base::Value and blink::WebSerializedScriptValue
messages. Additionally a (currently unset) flag is added that determines
how MessagePort sends messages back to the browser process.
This is part of a series of changes:
[1/5] Blink side changes in https://codereview.chromium.org/924983002/ that expose a needed v8 context
[2/5] This CL
[3/5] https://codereview.chromium.org/944443003/ which causes the send_messages_as_values flag to be propagated
[4/5] https://codereview.chromium.org/938403005/ which uses this for navigator.connect services and adds infrastructure for layout tests
[5/5] https://codereview.chromium.org/940423004/ adds layout tests to blink to test these new features
BUG=426458
Committed: https://crrev.com/09ac29ceebbed0fa9a4500ee6e78acb13ebf9eaa
Cr-Commit-Position: refs/heads/master@{#318492}
Patch Set 1 #
Total comments: 9
Patch Set 2 : rebase and small fixes #Patch Set 3 : rename message_port_message.h to message_port_types.h #Patch Set 4 : update to match changes in blink side patch #
Total comments: 2
Patch Set 5 : fix typo in comment #Patch Set 6 : address scheib's comments and more #Patch Set 7 : fix android webview compile #
Total comments: 12
Patch Set 8 : Update singly-included comment #Messages
Total messages: 35 (12 generated)
|