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

Issue 2283543002: Add support for dispatch contexts on BindingSet (Closed)

Created:
4 years, 3 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 3 months ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for dispatch contexts on BindingSet Allows BindingSet<T>::AddBinding to associate an arbitrary |context| value with a new binding when added. The set's dispatch_context() accessor will return this value during the extent of any message or error dispatch targeting that specific binding. Refactors BindingSet to simplify lifetime management and allow it to be reused for associated bindings as well. Also implements AddFilter for master interface bindings on interface types which support associated interfaces, as this was accidentally omitted when AddFilter was introduced. BUG=612500 R=yzshen@chromium.org Committed: https://crrev.com/21bb88540cbc926f52b7e6547984ea772c441a69 Cr-Commit-Position: refs/heads/master@{#414809}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 7

Patch Set 3 : . #

Patch Set 4 : comments #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -56 lines) Patch
M mojo/public/cpp/bindings/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/cpp/bindings/associated_binding_set.h View 1 chunk +27 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/binding_set.h View 1 2 3 4 5 1 chunk +121 lines, -56 lines 0 comments Download
M mojo/public/cpp/bindings/lib/binding_state.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/binding_state.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/binding_set_unittest.cc View 1 2 1 chunk +268 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
Ken Rockot(use gerrit already)
Hi Yuzhu, could you please take a look at this? Thanks!
4 years, 3 months ago (2016-08-25 23:33:15 UTC) #3
yzshen1
https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h File mojo/public/cpp/bindings/binding_set.h (right): https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h#newcode60 mojo/public/cpp/bindings/binding_set.h:60: AddBinding(impl, Traits::GetProxy(&proxy)); Is it intentional that we don't provide ...
4 years, 3 months ago (2016-08-26 16:30:47 UTC) #11
yzshen1
https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h File mojo/public/cpp/bindings/binding_set.h (right): https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h#newcode60 mojo/public/cpp/bindings/binding_set.h:60: AddBinding(impl, Traits::GetProxy(&proxy)); Is it intentional that we don't provide ...
4 years, 3 months ago (2016-08-26 16:30:48 UTC) #12
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h File mojo/public/cpp/bindings/binding_set.h (right): https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h#newcode60 mojo/public/cpp/bindings/binding_set.h:60: AddBinding(impl, Traits::GetProxy(&proxy)); On 2016/08/26 at 16:30:48, yzshen1 wrote: > ...
4 years, 3 months ago (2016-08-26 17:01:20 UTC) #15
yzshen1
lgtm https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h File mojo/public/cpp/bindings/binding_set.h (right): https://codereview.chromium.org/2283543002/diff/20001/mojo/public/cpp/bindings/binding_set.h#newcode60 mojo/public/cpp/bindings/binding_set.h:60: AddBinding(impl, Traits::GetProxy(&proxy)); On 2016/08/26 17:01:20, Ken Rockot wrote: ...
4 years, 3 months ago (2016-08-26 18:11:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2283543002/90001
4 years, 3 months ago (2016-08-26 20:11:25 UTC) #28
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2283543002/diff/70001/mojo/public/cpp/bindings/binding_set.h File mojo/public/cpp/bindings/binding_set.h (right): https://codereview.chromium.org/2283543002/diff/70001/mojo/public/cpp/bindings/binding_set.h#newcode135 mojo/public/cpp/bindings/binding_set.h:135: if (binding_set_->SupportsContext()) On 2016/08/26 at 18:11:28, yzshen1 wrote: > ...
4 years, 3 months ago (2016-08-26 20:15:02 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 3 months ago (2016-08-26 21:21:53 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 21:25:04 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/21bb88540cbc926f52b7e6547984ea772c441a69
Cr-Commit-Position: refs/heads/master@{#414809}

Powered by Google App Engine
This is Rietveld 408576698