Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 522443003: Accept inbound connections on unix domain socket (Closed)

Created:
6 years, 3 months ago by Chris Masone
Modified:
6 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bug407782
Project:
chromium
Visibility:
Public.

Description

Accept inbound connections on unix domain socket In order for CrOS Core services to speak Mojo, the mojo_shell will need to be able to accept incoming connections from externally-managed processes. POR is to have the shell listen on a unix domain socket and convert incoming connections to a proper Mojo MessagePipe and then wire it to an InterfaceImpl<ExternalApplicationRegistrar>, which will make the appropriate calls on ApplicationManager. BUG=418289 TEST=mojo_external_application_tests STATUS=Fixed Committed: https://crrev.com/d500c98bc5ab976e9f590c76aeb9c7f7f347ec58 Cr-Commit-Position: refs/heads/master@{#297184}

Patch Set 1 #

Patch Set 2 : Tests now pass #

Patch Set 3 : Threading should be better #

Patch Set 4 : Comments, also unittest threading fixes #

Patch Set 5 : whoops, removed non-existent target from //mojo/examples #

Patch Set 6 : Unittest cleanup and comments #

Patch Set 7 : Fix clang style complaints #

Total comments: 2

Patch Set 8 : Add command-line flag #

Patch Set 9 : Made platform-specific files where needed #

Patch Set 10 : Still trying to get windows working #

Patch Set 11 : mojo_external_application_tests should not be included on windows #

Patch Set 12 : Had to divvy more things up so Windows would work #

Patch Set 13 : Forgot an override. Not sure why local build didn't catch it. #

Patch Set 14 : try different split #

Patch Set 15 : overrides #

Patch Set 16 : WINDOOOWSS! #

Patch Set 17 : DELTA HOOUUUUUSE! #

Patch Set 18 : Deleted extra curly brace, which was closing a namespace too early #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1301 lines, -6 lines) Patch
M mojo/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M mojo/application_manager/application_manager.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M mojo/application_manager/application_manager.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 12 13 5 chunks +34 lines, -1 line 0 comments Download
M mojo/shell/BUILD.gn View 1 2 3 4 5 6 7 8 12 13 4 chunks +48 lines, -0 lines 0 comments Download
M mojo/shell/context.h View 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/shell/context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -0 lines 0 comments Download
A mojo/shell/external_application_listener.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +71 lines, -0 lines 0 comments Download
A mojo/shell/external_application_listener_posix.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +130 lines, -0 lines 0 comments Download
A mojo/shell/external_application_listener_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +201 lines, -0 lines 0 comments Download
A mojo/shell/external_application_listener_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +228 lines, -0 lines 0 comments Download
A mojo/shell/external_application_listener_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +35 lines, -0 lines 0 comments Download
A mojo/shell/external_application_listener_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +49 lines, -0 lines 0 comments Download
A mojo/shell/external_application_registrar.mojom View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A mojo/shell/external_application_registrar_connection.h View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A mojo/shell/external_application_registrar_connection.cc View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
A + mojo/shell/external_application_test_main.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
A mojo/shell/incoming_connection_listener_posix.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +72 lines, -0 lines 0 comments Download
A mojo/shell/incoming_connection_listener_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +103 lines, -0 lines 0 comments Download
A mojo/shell/incoming_connection_listener_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +124 lines, -0 lines 0 comments Download
M mojo/shell/switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/switches.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
Chris Masone
cmasone@chromium.org changed reviewers: + aa@chromium.org
6 years, 3 months ago (2014-08-29 00:28:12 UTC) #1
Chris Masone
Look down near the bottom of external_application_listener_unittest.cc
6 years, 3 months ago (2014-08-29 00:28:12 UTC) #2
Chris Masone
I've created this ExternalApplicationListener class that will open a unix domain socket and listen on ...
6 years, 3 months ago (2014-09-20 01:17:31 UTC) #4
Chris Masone
Ok! Now, ExternalApplicationListener creates, uses, and destroys an IncomingConnectionListener all on an IO thread. When ...
6 years, 3 months ago (2014-09-23 14:21:47 UTC) #5
Chris Masone
On 2014/09/23 14:21:47, Chris Masone wrote: > Ok! Now, ExternalApplicationListener creates, uses, and destroys an ...
6 years, 3 months ago (2014-09-23 14:22:18 UTC) #6
Chris Masone
On 2014/09/23 14:22:18, Chris Masone wrote: > On 2014/09/23 14:21:47, Chris Masone wrote: > > ...
6 years, 2 months ago (2014-09-24 22:51:02 UTC) #7
Chris Masone
Aaron, this is the CL that I started a while ago to try to enable ...
6 years, 2 months ago (2014-09-25 14:31:44 UTC) #9
Chris Masone
Dave? How does this all strike you?
6 years, 2 months ago (2014-09-26 01:07:42 UTC) #10
DaveMoore
We should only create the listener when told to with a command line flag, but ...
6 years, 2 months ago (2014-09-26 22:48:57 UTC) #11
Chris Masone
Added the flag, as well: --enable-external-applications running trybots now https://codereview.chromium.org/522443003/diff/120001/mojo/shell/incoming_connection_listener.cc File mojo/shell/incoming_connection_listener.cc (right): https://codereview.chromium.org/522443003/diff/120001/mojo/shell/incoming_connection_listener.cc#newcode73 mojo/shell/incoming_connection_listener.cc:73: ...
6 years, 2 months ago (2014-09-27 00:46:30 UTC) #12
Chris Masone
Hey, Dave. In order to gracefully deal with the platform issues, I did the following: ...
6 years, 2 months ago (2014-09-29 02:14:18 UTC) #15
DaveMoore
lgtm
6 years, 2 months ago (2014-09-29 15:51:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/522443003/340001
6 years, 2 months ago (2014-09-29 16:00:08 UTC) #18
commit-bot: I haz the power
Committed patchset #18 (id:340001) as 86cb272b23ca0099e86ff3b10904a9157f4acbb1
6 years, 2 months ago (2014-09-29 16:04:58 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 16:05:42 UTC) #20
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/d500c98bc5ab976e9f590c76aeb9c7f7f347ec58
Cr-Commit-Position: refs/heads/master@{#297184}

Powered by Google App Engine
This is Rietveld 408576698