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

Issue 1759783003: [mojo-bindings] Use Watch API instead of MessagePumpMojo (Closed)

Created:
4 years, 9 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 9 months ago
Reviewers:
jam, yzshen1
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo-bindings] Use Watch API instead of MessagePumpMojo This removes the C++ bindings dependency on MessagePumpMojo, consuming the new Watch API instead. For convenience a new mojo::Watcher is added to the public Mojo C++ API library, and this is used by Connector. BUG=590495 R=yzshen@chromium.org TBR=blundell@chromium.org for rename affecting components/message_port.gypi TBR=jam@chromium.org - added a missing header to new url tests Committed: https://crrev.com/d06373e7cd8b4ad725ed5c64c958f2de13585add Cr-Commit-Position: refs/heads/master@{#379402} Committed: https://crrev.com/2cdb2f677c68f06b3bc54cd40f000ab961a09bbb Cr-Commit-Position: refs/heads/master@{#379463} Committed: https://crrev.com/e5d711ec0a8b327dea474d5c83dec0ae5f2c545e Cr-Commit-Position: refs/heads/master@{#379508}

Patch Set 1 #

Patch Set 2 : gyp #

Patch Set 3 : #

Patch Set 4 : set upstream #

Total comments: 12

Patch Set 5 : #

Patch Set 6 : signal Watcher cancellation on MessageLoop destruction #

Patch Set 7 : fix missing header in new url tests #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : fix shell unit test, cancel on dtor again #

Patch Set 11 : #

Patch Set 12 : fix components_unittests EDK deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+483 lines, -43 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M components/message_port.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/mojo_edk_tests.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/mojo_public.gyp View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M mojo/mojo_variables.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/connector.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/connector.cc View 1 2 3 4 5 6 chunks +18 lines, -25 lines 0 comments Download
M mojo/public/cpp/system/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/system/tests/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A mojo/public/cpp/system/tests/watcher_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +186 lines, -0 lines 0 comments Download
A mojo/public/cpp/system/watcher.h View 1 2 3 4 5 6 7 8 9 1 chunk +117 lines, -0 lines 0 comments Download
A mojo/public/cpp/system/watcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +134 lines, -0 lines 0 comments Download
M mojo/shell/public/cpp/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M mojo/shell/public/cpp/lib/application_runner.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -6 lines 0 comments Download
M mojo/shell/tests/connect/connect_test_app.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -1 line 0 comments Download
M url/mojo/url_gurl_struct_traits_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (12 generated)
Ken Rockot(use gerrit already)
I ended up making the notifications PostTask directly rather than having a centralized per-thread dispatcher, ...
4 years, 9 months ago (2016-03-02 23:56:33 UTC) #1
Ken Rockot(use gerrit already)
I realize I forgot gyp changes - will upload in a bit :)
4 years, 9 months ago (2016-03-02 23:57:38 UTC) #2
Ken Rockot(use gerrit already)
gyp updated
4 years, 9 months ago (2016-03-03 00:39:44 UTC) #3
yzshen1
https://codereview.chromium.org/1759783003/diff/60001/mojo/public/cpp/bindings/lib/connector.cc File mojo/public/cpp/bindings/lib/connector.cc (right): https://codereview.chromium.org/1759783003/diff/60001/mojo/public/cpp/bindings/lib/connector.cc#newcode279 mojo/public/cpp/bindings/lib/connector.cc:279: if (!handle_watcher_.is_watching()) { Does it make sense to remove ...
4 years, 9 months ago (2016-03-03 16:25:32 UTC) #4
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1759783003/diff/60001/mojo/public/cpp/bindings/lib/connector.cc File mojo/public/cpp/bindings/lib/connector.cc (right): https://codereview.chromium.org/1759783003/diff/60001/mojo/public/cpp/bindings/lib/connector.cc#newcode279 mojo/public/cpp/bindings/lib/connector.cc:279: if (!handle_watcher_.is_watching()) { On 2016/03/03 at 16:25:31, yzshen1 wrote: ...
4 years, 9 months ago (2016-03-03 17:11:18 UTC) #6
yzshen1
lgtm
4 years, 9 months ago (2016-03-03 18:51:10 UTC) #7
Ken Rockot(use gerrit already)
Also TBRing jam@, because removing the bindings dependency on handle_watcher.h exposed a missing #include in ...
4 years, 9 months ago (2016-03-04 07:50:19 UTC) #10
yzshen1
https://codereview.chromium.org/1759783003/diff/160001/mojo/public/cpp/system/watcher.h File mojo/public/cpp/system/watcher.h (right): https://codereview.chromium.org/1759783003/diff/160001/mojo/public/cpp/system/watcher.h#newcode47 mojo/public/cpp/system/watcher.h:47: // NOTE: You MUST not destroy a Watcher while ...
4 years, 9 months ago (2016-03-04 18:58:17 UTC) #11
Ken Rockot(use gerrit already)
We could go back to implicit cancellation but I decided it wasn't necessary and think ...
4 years, 9 months ago (2016-03-04 19:02:08 UTC) #12
yzshen1
On 2016/03/04 19:02:08, Ken Rockot wrote: > We could go back to implicit cancellation but ...
4 years, 9 months ago (2016-03-04 19:17:06 UTC) #13
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1759783003/diff/160001/mojo/public/cpp/system/watcher.h File mojo/public/cpp/system/watcher.h (right): https://codereview.chromium.org/1759783003/diff/160001/mojo/public/cpp/system/watcher.h#newcode47 mojo/public/cpp/system/watcher.h:47: // NOTE: You MUST not destroy a Watcher while ...
4 years, 9 months ago (2016-03-04 22:45:39 UTC) #14
yzshen1
Nice. LGTM++
4 years, 9 months ago (2016-03-04 22:49:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759783003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759783003/180001
4 years, 9 months ago (2016-03-04 23:03:03 UTC) #17
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-05 00:00:04 UTC) #18
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/d06373e7cd8b4ad725ed5c64c958f2de13585add Cr-Commit-Position: refs/heads/master@{#379402}
4 years, 9 months ago (2016-03-05 00:01:32 UTC) #20
Ken Rockot(use gerrit already)
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/1768443004/ by rockot@chromium.org. ...
4 years, 9 months ago (2016-03-05 00:13:29 UTC) #21
Ken Rockot(use gerrit already)
content_unittests deps fixed - wasn't properly depending on the EDK on all platforms relanding
4 years, 9 months ago (2016-03-05 04:43:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759783003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759783003/210001
4 years, 9 months ago (2016-03-05 04:43:17 UTC) #25
Ken Rockot(use gerrit already)
On 2016/03/05 at 04:43:17, commit-bot wrote: > CQ is trying da patch. Follow status at ...
4 years, 9 months ago (2016-03-05 04:44:48 UTC) #26
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 9 months ago (2016-03-05 06:04:47 UTC) #27
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/2cdb2f677c68f06b3bc54cd40f000ab961a09bbb Cr-Commit-Position: refs/heads/master@{#379463}
4 years, 9 months ago (2016-03-05 06:06:33 UTC) #29
Ken Rockot(use gerrit already)
A revert of this CL (patchset #12 id:210001) has been created in https://codereview.chromium.org/1772503002/ by rockot@chromium.org. ...
4 years, 9 months ago (2016-03-06 17:23:53 UTC) #30
Ken Rockot(use gerrit already)
Relanding this again. I've had no luck reproing the mus_apptests flake outside of one builder, ...
4 years, 9 months ago (2016-03-07 00:48:05 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759783003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759783003/210001
4 years, 9 months ago (2016-03-07 00:48:36 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/155688)
4 years, 9 months ago (2016-03-07 01:57:45 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759783003/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759783003/210001
4 years, 9 months ago (2016-03-07 02:04:14 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 9 months ago (2016-03-07 02:37:01 UTC) #38
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 02:38:11 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/e5d711ec0a8b327dea474d5c83dec0ae5f2c545e
Cr-Commit-Position: refs/heads/master@{#379508}

Powered by Google App Engine
This is Rietveld 408576698