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

Issue 25895002: Simple shell that loads a dll and calls an entrypoint function passing in a handle to a pipe create… (Closed)

Created:
7 years, 2 months ago by Ben Goodger (Google)
Modified:
7 years, 2 months ago
Reviewers:
vtl, darin (slow to review), Nico, vtl
CC:
chromium-reviews, Aaron Boodman
Visibility:
Public.

Description

Simple shell that loads a dll and calls an entrypoint function passing in a handle to a pipe created by the shell app. To achieve this I had to make mojo_system a <(component) so sample_app.dll could link against it. Trung, Darin tells me you had a different idea about how to achieve this. Consider this CL a starting point for the discussion :-) R=darin@chromium.org BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227604 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227983

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review comments. #

Patch Set 3 : cross platform #

Patch Set 4 : Close handles to the message pipe. #

Total comments: 1

Patch Set 5 : . #

Patch Set 6 : Linux. #

Patch Set 7 : export. #

Patch Set 8 : oops #

Patch Set 9 : . #

Patch Set 10 : , #

Patch Set 11 : , #

Patch Set 12 : exports to template instantiations #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -38 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 1 comment Download
M mojo/mojo.gyp View 1 2 3 4 5 7 8 2 chunks +30 lines, -1 line 0 comments Download
M mojo/public/system/core.h View 1 4 chunks +25 lines, -19 lines 0 comments Download
A mojo/public/system/system_export.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A mojo/shell/app_container.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A mojo/shell/app_container.cc View 1 2 3 4 5 1 chunk +92 lines, -0 lines 0 comments Download
A mojo/shell/sample_app.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +73 lines, -0 lines 0 comments Download
A mojo/shell/shell.cc View 1 chunk +33 lines, -0 lines 0 comments Download
A + mojo/shell/switches.h View 1 chunk +5 lines, -4 lines 0 comments Download
A + mojo/shell/switches.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M mojo/system/core_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/system/dispatcher.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M mojo/system/memory.h View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M mojo/system/memory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/system/message_pipe.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M mojo/system/message_pipe_dispatcher.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M mojo/system/simple_dispatcher.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M mojo/system/waiter.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M mojo/system/waiter_list.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Ben Goodger (Google)
https://codereview.chromium.org/25895002/diff/1/mojo/mojo.gyp File mojo/mojo.gyp (right): https://codereview.chromium.org/25895002/diff/1/mojo/mojo.gyp#newcode72 mojo/mojo.gyp:72: 'SYSTEM_IMPLEMENTATION', MOJO_SYSTEM_IMPLEMENTATION? https://codereview.chromium.org/25895002/diff/1/mojo/shell/sample_app.cc File mojo/shell/sample_app.cc (right): https://codereview.chromium.org/25895002/diff/1/mojo/shell/sample_app.cc#newcode49 mojo/shell/sample_app.cc:49: // ...
7 years, 2 months ago (2013-10-03 17:45:18 UTC) #1
darin (slow to review)
https://codereview.chromium.org/25895002/diff/1/mojo/public/system/core.h File mojo/public/system/core.h (right): https://codereview.chromium.org/25895002/diff/1/mojo/public/system/core.h#newcode12 mojo/public/system/core.h:12: #include "mojo/public/system/system_export.h" looks like this file is missing from ...
7 years, 2 months ago (2013-10-04 21:47:13 UTC) #2
Ben Goodger (Google)
https://codereview.chromium.org/25895002/diff/1/mojo/shell/app_container.cc File mojo/shell/app_container.cc (right): https://codereview.chromium.org/25895002/diff/1/mojo/shell/app_container.cc#newcode69 mojo/shell/app_container.cc:69: base::MessageLoop::current(), On 2013/10/04 21:47:14, darin wrote: > there's an ...
7 years, 2 months ago (2013-10-07 23:48:43 UTC) #3
darin (slow to review)
On Mon, Oct 7, 2013 at 4:48 PM, <ben@chromium.org> wrote: > > https://codereview.chromium.**org/25895002/diff/1/mojo/** > shell/app_container.cc<https://codereview.chromium.org/25895002/diff/1/mojo/shell/app_container.cc> ...
7 years, 2 months ago (2013-10-08 03:50:56 UTC) #4
vtl
On Mon, Oct 7, 2013 at 8:50 PM, Darin Fisher <darin@chromium.org> wrote: > > On ...
7 years, 2 months ago (2013-10-08 17:03:51 UTC) #5
Ben Goodger (Google)
Updated.
7 years, 2 months ago (2013-10-08 17:06:48 UTC) #6
darin (slow to review)
LGTM https://codereview.chromium.org/25895002/diff/17001/mojo/shell/app_container.cc File mojo/shell/app_container.cc (right): https://codereview.chromium.org/25895002/diff/17001/mojo/shell/app_container.cc#newcode45 mojo/shell/app_container.cc:45: mojo::Close(app_handle); nit: you could leave off the mojo:: ...
7 years, 2 months ago (2013-10-08 21:30:05 UTC) #7
Ben Goodger (Google)
Committed patchset #5 manually as r227604 (presubmit successful).
7 years, 2 months ago (2013-10-08 21:43:52 UTC) #8
Ben Goodger (Google)
I sprinkled a minimal set of exports in to make mojo_system_unittests link. We will probably ...
7 years, 2 months ago (2013-10-10 16:53:24 UTC) #9
darin (slow to review)
LGTM
7 years, 2 months ago (2013-10-10 17:54:39 UTC) #10
Ben Goodger (Google)
Committed patchset #12 manually as r227983 (presubmit successful).
7 years, 2 months ago (2013-10-10 20:52:26 UTC) #11
Nico
7 years, 2 months ago (2013-10-12 17:03:25 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/25895002/diff/65001/build/all.gyp
File build/all.gyp (right):

https://codereview.chromium.org/25895002/diff/65001/build/all.gyp#newcode45
build/all.gyp:45: '../mojo/mojo.gyp:*',
One side effect of having this dependency in all and nowhere else is that this
target is built on almost no bots, but it _is_ build on the chromium.chrome mac
bot and the mac clobber bot, both of which are on the main waterfall. So mojo
can turn the tree red, but trybots won't warn you, and you'll only learn about
it after several hours as these two bots are very slow.

(Example: I broke mojo compilation like so
http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Mac/bu...
and didn't realize until the next morning)

Powered by Google App Engine
This is Rietveld 408576698