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

Issue 2048023004: Introduce base::IsWeakReceiver for base::Bind to support external weak pointers (Closed)

Created:
4 years, 6 months ago by tzik
Modified:
4 years, 6 months ago
Reviewers:
danakj
CC:
chromium-reviews, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce base::IsWeakReceiver for base::Bind to support external weak pointers base::IsWeakReceiver is an injection point for external libraries to configure a receiver to behave as a weak pointer. Namely, WTF::WeakPtr, WTF::WeakPersistent and WTF::CrossThreadWeakPersistent in Blink will be specialize base::IsWeakReceiver, and the callback will be cancelled on null instances of them. Committed: https://crrev.com/1ae80b2655df4f23b87776625de2ae8eb0e03df2 Cr-Commit-Position: refs/heads/master@{#399689}

Patch Set 1 #

Patch Set 2 : +comment #

Total comments: 6

Patch Set 3 : comment fix. reorder template specializations. use Perfect Forwarding for weak call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -10 lines) Patch
M base/bind_helpers.h View 1 2 3 chunks +26 lines, -7 lines 0 comments Download
M base/bind_internal.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
tzik
PTAL
4 years, 6 months ago (2016-06-10 06:23:11 UTC) #3
danakj
Few small comments, LGTM overall https://codereview.chromium.org/2048023004/diff/20001/base/bind_helpers.h File base/bind_helpers.h (right): https://codereview.chromium.org/2048023004/diff/20001/base/bind_helpers.h#newcode631 base/bind_helpers.h:631: // method, base::Bind cancels ...
4 years, 6 months ago (2016-06-10 23:36:18 UTC) #4
tzik
https://codereview.chromium.org/2048023004/diff/20001/base/bind_helpers.h File base/bind_helpers.h (right): https://codereview.chromium.org/2048023004/diff/20001/base/bind_helpers.h#newcode631 base/bind_helpers.h:631: // method, base::Bind cancels the method invocation if the ...
4 years, 6 months ago (2016-06-14 12:06:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2048023004/40001
4 years, 6 months ago (2016-06-14 12:38:35 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-14 13:17:48 UTC) #10
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 13:17:57 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 13:21:19 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1ae80b2655df4f23b87776625de2ae8eb0e03df2
Cr-Commit-Position: refs/heads/master@{#399689}

Powered by Google App Engine
This is Rietveld 408576698