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

Issue 1618043003: Support weak WebPrivatePtr<>s. (Closed)

Created:
4 years, 11 months ago by sof
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support weak WebPrivatePtr<>s. Parameterize WebPrivatePtr<> over the strength of the reference it maintains: WebPtrivatePtr<T, crossThreadDestruction, strongOrWeak> where crossThreadDestruction = WebPrivatePtrDestruction{SameThread, CrossThread} strongOrWeak = WebPrivatePtrStrength::{Normal, Weak} If Normal, the reference is the normal strong kind, which means either a RefPtr<> or a strong off-heap (CrossThread)Persistent<T> Oilpan reference. If Weak, the Oilpan reference will be (CrossThread)WeakPersistent<T>, meaning that the WebPrivatePtr<> will not keep the object alive on its own. Any dereference of the WebPrivatePtr<> will consequently have to check if the reference has been cleared before using. The abstraction doesn't currently support weak non-Oilpan references. R= BUG= Committed: https://crrev.com/07dc1d007fb0b42ed034e5731377f9e659a26ce5 Cr-Commit-Position: refs/heads/master@{#372324}

Patch Set 1 #

Patch Set 2 : Strong -> Normal #

Total comments: 2

Patch Set 3 : fix indentation + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -19 lines) Patch
M third_party/WebKit/public/platform/WebPrivatePtr.h View 1 2 8 chunks +40 lines, -19 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
sof
please take a look..when there is a use for this. Should it turn out useful ...
4 years, 11 months ago (2016-01-25 22:06:25 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618043003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618043003/20001
4 years, 11 months ago (2016-01-25 22:07:40 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/164058)
4 years, 11 months ago (2016-01-26 01:56:33 UTC) #8
haraken
LGTM I remember yhirano@ and hiroshige@ wanted this a while ago.
4 years, 11 months ago (2016-01-26 06:29:25 UTC) #10
hiroshige
Great, lgtm! https://codereview.chromium.org/1618043003/diff/20001/third_party/WebKit/public/platform/WebPrivatePtr.h File third_party/WebKit/public/platform/WebPrivatePtr.h (right): https://codereview.chromium.org/1618043003/diff/20001/third_party/WebKit/public/platform/WebPrivatePtr.h#newcode149 third_party/WebKit/public/platform/WebPrivatePtr.h:149: class PtrStorageImpl<T, crossThreadDestruction, strongOrWeak, GarbageCollectedLifetime> { nit: ...
4 years, 11 months ago (2016-01-27 03:55:01 UTC) #11
yhirano
lgtm. Thanks!
4 years, 11 months ago (2016-01-28 02:06:33 UTC) #12
sof
adding tkent@ for public/platform owner review, ptal (no rush.) https://codereview.chromium.org/1618043003/diff/20001/third_party/WebKit/public/platform/WebPrivatePtr.h File third_party/WebKit/public/platform/WebPrivatePtr.h (right): https://codereview.chromium.org/1618043003/diff/20001/third_party/WebKit/public/platform/WebPrivatePtr.h#newcode149 third_party/WebKit/public/platform/WebPrivatePtr.h:149: ...
4 years, 10 months ago (2016-01-29 09:12:23 UTC) #14
tkent
lgtm
4 years, 10 months ago (2016-01-29 09:15:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618043003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618043003/40001
4 years, 10 months ago (2016-01-29 09:25:33 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-01-29 10:44:57 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 10:45:54 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/07dc1d007fb0b42ed034e5731377f9e659a26ce5
Cr-Commit-Position: refs/heads/master@{#372324}

Powered by Google App Engine
This is Rietveld 408576698