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

Issue 106173003: Split mojo_system dylib into public and private (Closed)

Created:
7 years ago by abarth-chromium
Modified:
7 years ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org
Visibility:
Public.

Description

Split mojo_system dylib into public and private This CL splits the mojo_system dylib into two pieces: 1) A dynamic library suitable for apps to link against 2) A component suitable for linking into mojo_shell The first dylib doesn't depend on base and simply jumps through a vtable into an implementation defined by its embedder. The second implements the vtable and actually contains the code to implement the API. After this CL, Mojo should basically work in the static build. This CL is a prerequiste for fixing the Android port. R=darin@chromium.org BUG=326918 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239692

Patch Set 1 #

Patch Set 2 : Fix win #

Total comments: 10

Patch Set 3 : Address review comments #

Patch Set 4 : Remove extra include_dir #

Patch Set 5 : Fix win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -148 lines) Patch
M mojo/mojo.gyp View 1 2 3 8 chunks +10 lines, -8 lines 0 comments Download
M mojo/mojo_public.gypi View 1 1 chunk +23 lines, -0 lines 0 comments Download
M mojo/public/gles2/gles2.h View 1 chunk +1 line, -1 line 0 comments Download
A mojo/public/system/core_private.h View 1 chunk +48 lines, -0 lines 0 comments Download
A mojo/public/system/core_private.cc View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
M mojo/public/system/system_export.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M mojo/system/channel.h View 2 chunks +4 lines, -3 lines 0 comments Download
D mojo/system/core.cc View 1 chunk +0 lines, -65 lines 0 comments Download
M mojo/system/core_impl.h View 4 chunks +28 lines, -29 lines 0 comments Download
M mojo/system/core_impl.cc View 1 chunk +1 line, -5 lines 0 comments Download
M mojo/system/dispatcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/system/local_message_pipe_endpoint.h View 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/system/memory.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/system/memory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/system/message_in_transit.h View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/system/message_pipe.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/system/message_pipe_dispatcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/system/message_pipe_endpoint.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/system/platform_channel.h View 3 chunks +4 lines, -4 lines 0 comments Download
M mojo/system/proxy_message_pipe_endpoint.h View 2 chunks +3 lines, -2 lines 0 comments Download
M mojo/system/raw_channel.h View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/system/simple_dispatcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
A mojo/system/system_impl_export.h View 1 chunk +29 lines, -0 lines 0 comments Download
M mojo/system/waiter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/system/waiter_list.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
abarth-chromium
7 years ago (2013-12-09 08:23:38 UTC) #1
darin (slow to review)
Trung should review this (as well).
7 years ago (2013-12-09 18:54:56 UTC) #2
viettrungluu
https://codereview.chromium.org/106173003/diff/20001/mojo/public/system/core_private.cc File mojo/public/system/core_private.cc (right): https://codereview.chromium.org/106173003/diff/20001/mojo/public/system/core_private.cc#newcode13 mojo/public/system/core_private.cc:13: MojoResult MojoClose(MojoHandle handle) { Can't we just replace these ...
7 years ago (2013-12-09 19:25:59 UTC) #3
abarth-chromium
https://codereview.chromium.org/106173003/diff/20001/mojo/public/system/core_private.cc File mojo/public/system/core_private.cc (right): https://codereview.chromium.org/106173003/diff/20001/mojo/public/system/core_private.cc#newcode13 mojo/public/system/core_private.cc:13: MojoResult MojoClose(MojoHandle handle) { On 2013/12/09 19:25:59, viettrungluu wrote: ...
7 years ago (2013-12-09 21:19:33 UTC) #4
viettrungluu
On 2013/12/09 21:19:33, abarth wrote: > https://codereview.chromium.org/106173003/diff/20001/mojo/public/system/core_private.cc > File mojo/public/system/core_private.cc (right): > > https://codereview.chromium.org/106173003/diff/20001/mojo/public/system/core_private.cc#newcode13 > ...
7 years ago (2013-12-09 21:24:56 UTC) #5
abarth-chromium
On 2013/12/09 21:24:56, viettrungluu wrote: > Isn't the virtual function call one more level of ...
7 years ago (2013-12-09 21:31:07 UTC) #6
abarth-chromium
Here's some data from a z620 on Linux with gcc. Note: In the "without CL" ...
7 years ago (2013-12-09 21:40:48 UTC) #7
viettrungluu
Thanks, I'm sufficiently convinced. LGTM w/nits. https://codereview.chromium.org/106173003/diff/20001/mojo/mojo.gyp File mojo/mojo.gyp (right): https://codereview.chromium.org/106173003/diff/20001/mojo/mojo.gyp#newcode113 mojo/mojo.gyp:113: 'direct_dependent_settings': { Do ...
7 years ago (2013-12-09 22:04:25 UTC) #8
abarth-chromium
https://codereview.chromium.org/106173003/diff/20001/mojo/mojo.gyp File mojo/mojo.gyp (right): https://codereview.chromium.org/106173003/diff/20001/mojo/mojo.gyp#newcode113 mojo/mojo.gyp:113: 'direct_dependent_settings': { On 2013/12/09 22:04:25, viettrungluu wrote: > Do ...
7 years ago (2013-12-09 22:48:33 UTC) #9
abarth-chromium
On 2013/12/09 22:48:33, abarth wrote: > https://codereview.chromium.org/106173003/diff/20001/mojo/mojo.gyp > File mojo/mojo.gyp (right): > > https://codereview.chromium.org/106173003/diff/20001/mojo/mojo.gyp#newcode113 > ...
7 years ago (2013-12-09 22:54:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/106173003/60001
7 years ago (2013-12-09 23:07:12 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
7 years ago (2013-12-10 02:26:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/106173003/80001
7 years ago (2013-12-10 02:27:30 UTC) #13
commit-bot: I haz the power
7 years ago (2013-12-10 07:13:50 UTC) #14
Message was sent while issue was closed.
Change committed as 239692

Powered by Google App Engine
This is Rietveld 408576698