commit | fa48e5f45138dc87c5acca59235df098e18c494c | [log] [tgz] |
---|---|---|
author | peria <peria@chromium.org> | Thu Oct 15 07:15:03 2015 |
committer | Commit bot <commit-bot@chromium.org> | Thu Oct 15 07:15:43 2015 |
tree | 20166768ecadd084449440ea870d991e2fa77532 | |
parent | e64b4342817089df2e3ac8eb70afcfe0c6dde66d [diff] |
Create UnsafePtr to store on-heap pointers in Vector In basic rule, we cannot store pointers for on-heap objects in WTF::Vector. But in some situation like weak processing, we need it. In such cases, you can use UnsafePtr to avoid validations. Please check the pointee is guaranteed to be alive without UnsafePtr<>. BUG=515524 Review URL: https://codereview.chromium.org/1397073002 Cr-Commit-Position: refs/heads/master@{#354234}