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

Issue 23621056: Initial in-process implementation of some Mojo primitives. (Closed)

Created:
7 years, 3 months ago by viettrungluu
Modified:
7 years, 2 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Initial in-process implementation of some Mojo primitives. This has an initial in-process implementation of the most basic Mojo primitives: - MojoClose() - MojoWait() - MojoWaitMany() - MojoCreateMessagePipe() - MojoWriteMessage() - MojoReadMessage() R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225801 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225821

Patch Set 1 #

Patch Set 2 : wip17.1 #

Patch Set 3 : wip17.2 #

Patch Set 4 : wip17.3 #

Patch Set 5 : wip18 #

Patch Set 6 : wip18.1 #

Total comments: 36

Patch Set 7 : more docs and bug fix #

Patch Set 8 : test message pipes from CoreImpl #

Patch Set 9 : C++ wrappers #

Total comments: 7

Patch Set 10 : more tests, incl perf tests; up limits; more comments #

Patch Set 11 : make things static_library's for now #

Patch Set 12 : fix conversion warning #

Patch Set 13 : fix some dependencies, hopefully #

Patch Set 14 : hrm #

Patch Set 15 : oops #

Patch Set 16 : doh #

Patch Set 17 : grrr #

Patch Set 18 : . #

Patch Set 19 : build fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5344 lines, -1 line) Patch
M mojo/mojo.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +105 lines, -1 line 1 comment Download
M mojo/public/system/core.h View 1 2 3 4 5 6 7 8 9 1 chunk +295 lines, -0 lines 0 comments Download
A mojo/public/tests/system_core_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +99 lines, -0 lines 0 comments Download
A mojo/public/tests/system_core_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +105 lines, -0 lines 0 comments Download
A mojo/public/tests/test_support.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A mojo/public/tests/test_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +48 lines, -0 lines 0 comments Download
A mojo/system/core.cc View 1 chunk +53 lines, -0 lines 0 comments Download
A mojo/system/core_impl.h View 1 2 3 4 5 6 7 8 1 chunk +104 lines, -0 lines 0 comments Download
A mojo/system/core_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +275 lines, -0 lines 0 comments Download
A mojo/system/core_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +245 lines, -0 lines 0 comments Download
A mojo/system/core_test_base.h View 1 chunk +87 lines, -0 lines 0 comments Download
A mojo/system/core_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +227 lines, -0 lines 0 comments Download
A mojo/system/dispatcher.h View 1 2 3 4 5 1 chunk +106 lines, -0 lines 0 comments Download
A mojo/system/dispatcher.cc View 1 chunk +131 lines, -0 lines 0 comments Download
A mojo/system/dispatcher_unittest.cc View 1 2 3 4 1 chunk +189 lines, -0 lines 0 comments Download
A mojo/system/limits.h View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
A mojo/system/memory.h View 1 chunk +27 lines, -0 lines 0 comments Download
A mojo/system/memory.cc View 1 chunk +26 lines, -0 lines 0 comments Download
A mojo/system/message_pipe.h View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A mojo/system/message_pipe.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +248 lines, -0 lines 0 comments Download
A mojo/system/message_pipe_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +61 lines, -0 lines 0 comments Download
A mojo/system/message_pipe_dispatcher.cc View 1 1 chunk +77 lines, -0 lines 0 comments Download
A mojo/system/message_pipe_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +539 lines, -0 lines 0 comments Download
A mojo/system/message_pipe_unittest.cc View 1 2 3 4 5 6 1 chunk +540 lines, -0 lines 0 comments Download
A mojo/system/simple_dispatcher.h View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A mojo/system/simple_dispatcher.cc View 1 1 chunk +49 lines, -0 lines 0 comments Download
A mojo/system/simple_dispatcher_unittest.cc View 1 2 3 4 1 chunk +514 lines, -0 lines 0 comments Download
A mojo/system/test_utils.h View 1 chunk +38 lines, -0 lines 0 comments Download
A mojo/system/waiter.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A mojo/system/waiter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download
A mojo/system/waiter_list.h View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
A mojo/system/waiter_list.cc View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A mojo/system/waiter_list_unittest.cc View 1 2 1 chunk +266 lines, -0 lines 0 comments Download
A mojo/system/waiter_test_utils.h View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A mojo/system/waiter_test_utils.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A mojo/system/waiter_unittest.cc View 1 2 3 4 1 chunk +285 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
viettrungluu
Sorry for the size of the change (though it's 2/3 tests and a good chunk ...
7 years, 3 months ago (2013-09-24 20:44:08 UTC) #1
darin (slow to review)
Initial comments, just on the first two files. https://codereview.chromium.org/23621056/diff/11001/mojo/mojo.gyp File mojo/mojo.gyp (right): https://codereview.chromium.org/23621056/diff/11001/mojo/mojo.gyp#newcode18 mojo/mojo.gyp:18: 'mojo_core_unittests', ...
7 years, 3 months ago (2013-09-24 22:48:19 UTC) #2
darin (slow to review)
More comments. This looks really great. I haven't gotten through the entire CL in detail ...
7 years, 3 months ago (2013-09-25 06:06:07 UTC) #3
viettrungluu
Thanks for your comments. I'll consider/take care of the things that require code changes separately. ...
7 years, 2 months ago (2013-09-25 18:22:16 UTC) #4
viettrungluu
https://codereview.chromium.org/23621056/diff/11001/mojo/public/system/core.h File mojo/public/system/core.h (right): https://codereview.chromium.org/23621056/diff/11001/mojo/public/system/core.h#newcode83 mojo/public/system/core.h:83: const MojoWaitFlags MOJO_WAIT_FLAG_NONE = 0; On 2013/09/25 18:22:16, viettrungluu ...
7 years, 2 months ago (2013-09-25 19:47:59 UTC) #5
darin (slow to review)
The enum approach hasn't caused us problems with Pepper has it? Another approach would be ...
7 years, 2 months ago (2013-09-26 05:29:19 UTC) #6
darin (slow to review)
According to some random person on stack overflow: " The C standard also specifies that ...
7 years, 2 months ago (2013-09-26 05:35:22 UTC) #7
darin1
I meant to include the link: http://stackoverflow.com/questions/2579230/signedness-of-enum-in-c-c99-c-cx-gnu-c-gnu-c99 On Sep 25, 2013 10:35 PM, "Darin Fisher" ...
7 years, 2 months ago (2013-09-26 05:35:52 UTC) #8
viettrungluu
https://codereview.chromium.org/23621056/diff/11001/mojo/mojo.gyp File mojo/mojo.gyp (right): https://codereview.chromium.org/23621056/diff/11001/mojo/mojo.gyp#newcode18 mojo/mojo.gyp:18: 'mojo_core_unittests', On 2013/09/24 22:48:19, darin wrote: > It might ...
7 years, 2 months ago (2013-09-26 17:59:14 UTC) #9
darin (slow to review)
On 2013/09/26 17:59:14, viettrungluu wrote: > https://codereview.chromium.org/23621056/diff/11001/mojo/mojo.gyp > File mojo/mojo.gyp (right): > > https://codereview.chromium.org/23621056/diff/11001/mojo/mojo.gyp#newcode18 > ...
7 years, 2 months ago (2013-09-27 15:09:54 UTC) #10
darin (slow to review)
LGTM https://codereview.chromium.org/23621056/diff/29001/mojo/system/core_impl.cc File mojo/system/core_impl.cc (right): https://codereview.chromium.org/23621056/diff/29001/mojo/system/core_impl.cc#newcode238 mojo/system/core_impl.cc:238: dispatchers.push_back(d); Do we want to check for the ...
7 years, 2 months ago (2013-09-27 15:34:47 UTC) #11
viettrungluu
Thanks. https://codereview.chromium.org/23621056/diff/29001/mojo/system/core_impl.cc File mojo/system/core_impl.cc (right): https://codereview.chromium.org/23621056/diff/29001/mojo/system/core_impl.cc#newcode238 mojo/system/core_impl.cc:238: dispatchers.push_back(d); On 2013/09/27 15:34:47, darin wrote: > Do ...
7 years, 2 months ago (2013-09-27 17:58:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/23621056/69001
7 years, 2 months ago (2013-09-27 20:33:59 UTC) #13
commit-bot: I haz the power
Failed to trigger a try job on chromium_presubmit HTTP Error 400: Bad Request
7 years, 2 months ago (2013-09-27 21:28:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/viettrungluu@chromium.org/23621056/41002
7 years, 2 months ago (2013-09-27 21:33:28 UTC) #15
viettrungluu
Committed patchset #18 manually as r225801 (presubmit successful).
7 years, 2 months ago (2013-09-27 22:37:39 UTC) #16
viettrungluu
Committed patchset #19 manually as r225821 (presubmit successful).
7 years, 2 months ago (2013-09-28 00:30:10 UTC) #17
tfarina
7 years, 2 months ago (2013-10-01 02:21:13 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/23621056/diff/86001/mojo/mojo.gyp
File mojo/mojo.gyp (right):

https://codereview.chromium.org/23621056/diff/86001/mojo/mojo.gyp#newcode66
mojo/mojo.gyp:66: # TODO(vtl): This should probably be '<(component)'; make it
work.
shouldn't be hard.

Add:
defines: [ 'MOJO_IMPLEMENTATION' ]

mojo_export.h # copy the contents from other _export.h (say content_export.h)

and do class MOJO_EXPORT Foo { };

while there aren't to many files to update.

Powered by Google App Engine
This is Rietveld 408576698