• viettrungluu@chromium.org's avatar
    Mojo: Refactor PlatformChannel stuff. · 37df32bd
    viettrungluu@chromium.org authored
    - Remove PlatformServerChannel/PlatformClientChannel.
    - Add PlatformChannelPair (move stuff formerly in PlatformServerChannel
      into this).
    
    It became apparent that my previous plan to make this work on Windows
    wasn't work nicely. On the one hand, on Vista+, we can basically make
    things work like POSIX (created the channels in the parent and connect
    them, and send a channel to a child). On the other, on XP, to be secure
    you need to do more work (the channels aren't connected or authenticated
    initially), so you'd need much more machinery (to wait for connection,
    to authenticate, etc.).
    
    So I'll go for a different mechanism to make things work on XP. The
    assumption from the Mojo embedder API will be that it's given a channel
    handle that's already been connected, authenticated, etc. (which will be
    taken care of by other means). This will add flexibility in other ways
    as well (e.g., make Mojo IPC more happily coexist with Chrome IPC -- you
    should be able to pass a handle over Chrome IPC to set up Mojo IPC).
    
    Still to do: Move PlatformChannelPair into its own files.
    
    R=darin@chromium.org
    
    Review URL: https://codereview.chromium.org/134373005
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244223 0039d316-1c4b-4281-b951-d872f2087c98
    37df32bd
multiprocess_message_pipe_unittest.cc 9.91 KB