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

Issue 62773003: Mojo: Add BindingsSupportImpl on top of HandleWatcher (Closed)

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

Description

Mojo: Add BindingsSupportImpl on top of HandleWatcher Plumb MojoResult to the callback set on HandleWatcher. Revise BindingsSupport interface to make the implementation on top of HandleWatcher trivial. R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234247

Patch Set 1 #

Patch Set 2 : Fix linker issue. #

Patch Set 3 : Windows fix. #

Total comments: 5

Patch Set 4 : Add changes per review feedback. #

Patch Set 5 : Use reference count to track active HandleWatcher instances #

Patch Set 6 : Fix clang warning #

Patch Set 7 : Fix compile errors. #

Patch Set 8 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -81 lines) Patch
A mojo/common/bindings_support_impl.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A mojo/common/bindings_support_impl.cc View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 2 comments Download
M mojo/common/handle_watcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/common/handle_watcher.cc View 1 2 3 7 chunks +15 lines, -11 lines 0 comments Download
M mojo/common/handle_watcher_unittest.cc View 1 2 3 3 chunks +30 lines, -3 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M mojo/public/bindings/lib/bindings_support.h View 1 1 chunk +18 lines, -10 lines 0 comments Download
M mojo/public/bindings/lib/connector.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M mojo/public/bindings/lib/connector.cc View 1 2 3 4 5 6 5 chunks +16 lines, -25 lines 0 comments Download
M mojo/public/tests/simple_bindings_support.h View 2 chunks +6 lines, -7 lines 0 comments Download
M mojo/public/tests/simple_bindings_support.cc View 1 chunk +26 lines, -21 lines 0 comments Download
M mojo/shell/context.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/shell/context.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
darin (slow to review)
7 years, 1 month ago (2013-11-08 06:34:11 UTC) #1
sky
https://codereview.chromium.org/62773003/diff/130001/mojo/common/bindings_support_impl.cc File mojo/common/bindings_support_impl.cc (right): https://codereview.chromium.org/62773003/diff/130001/mojo/common/bindings_support_impl.cc#newcode27 mojo/common/bindings_support_impl.cc:27: } Is there a expectation that deleting BindingsSupportImpl implicitly ...
7 years, 1 month ago (2013-11-08 16:44:01 UTC) #2
darin (slow to review)
On 2013/11/08 16:44:01, sky wrote: > https://codereview.chromium.org/62773003/diff/130001/mojo/common/bindings_support_impl.cc > File mojo/common/bindings_support_impl.cc (right): > > https://codereview.chromium.org/62773003/diff/130001/mojo/common/bindings_support_impl.cc#newcode27 > ...
7 years, 1 month ago (2013-11-08 21:29:17 UTC) #3
sky
Ok, LGTM
7 years, 1 month ago (2013-11-08 21:47:35 UTC) #4
darin (slow to review)
PTAL I added an assertion that all HandleWatchers have been deleted that were created by ...
7 years, 1 month ago (2013-11-09 00:30:14 UTC) #5
darin (slow to review)
And now BindingsSupportImpl uses a member variable to count the number of active HandleWatcher instances.
7 years, 1 month ago (2013-11-09 05:38:54 UTC) #6
sky
LGTM https://codereview.chromium.org/62773003/diff/500001/mojo/common/bindings_support_impl.cc File mojo/common/bindings_support_impl.cc (right): https://codereview.chromium.org/62773003/diff/500001/mojo/common/bindings_support_impl.cc#newcode14 mojo/common/bindings_support_impl.cc:14: // The Context struct is used to track ...
7 years, 1 month ago (2013-11-11 17:23:50 UTC) #7
darin (slow to review)
Committed patchset #8 manually as r234247 (presubmit successful).
7 years, 1 month ago (2013-11-11 18:47:28 UTC) #8
darin (slow to review)
7 years, 1 month ago (2013-11-11 22:11:15 UTC) #9
Message was sent while issue was closed.
On 2013/11/11 18:47:28, darin wrote:
> Committed patchset #8 manually as r234247 (presubmit successful).

This change had to be reverted due to Android bustage. Revised CL is here:
https://codereview.chromium.org/69633002

Powered by Google App Engine
This is Rietveld 408576698