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

Issue 2515873003: Mojo C++ Bindings: Introduce mojo::SupportsStrongBinding

Created:
4 years, 1 month ago by Ken Rockot(use gerrit already)
Modified:
4 years ago
Reviewers:
dcheng
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

Mojo C++ Bindings: Introduce mojo::SupportsStrongBinding Adds mojo::SupportsStrongBinding and requires this to be inherited by any interface implementation that will be strongly bound to a pipe. This allows for safe deletion of strongly bound impls from outside their pipe's connection error handler. BUG=666803 R=dcheng@chromium.org

Patch Set 1 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -58 lines) Patch
M mojo/public/cpp/bindings/strong_binding.h View 5 chunks +47 lines, -3 lines 1 comment Download
M mojo/public/cpp/bindings/tests/associated_interface_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/binding_unittest.cc View 4 chunks +41 lines, -50 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Ken Rockot(use gerrit already)
Here's what it might look like to make self deletion safe.
4 years, 1 month ago (2016-11-19 06:55:24 UTC) #4
dcheng
Two thoughts: 1) If we consider this route, can we just embed the StrongBinding itself ...
4 years, 1 month ago (2016-11-21 10:42:12 UTC) #5
Ken Rockot(use gerrit already)
On Nov 21, 2016 2:42 AM, <dcheng@chromium.org> wrote: > > Two thoughts: > 1) If ...
4 years, 1 month ago (2016-11-21 15:40:13 UTC) #6
dcheng
4 years ago (2016-12-09 05:27:58 UTC) #7
Note to myself: useful to figure out if we can handle cases like
https://codereview.chromium.org/2474653003/diff/340001/chrome/browser/prefs/p...
more elegantly as well.

Powered by Google App Engine
This is Rietveld 408576698