On Thu, Aug 20, 2009 at 9:46 PM, Drew Wilson <atwil...@chromium.org> wrote:

> Speaking of which, how do we capture the idea of passing ownership of a
> pointer? If this were in WebCore, I'd use WTF::OwnPtr/PassOwnPtr to signify
> that I was passing off ownership of a pointer. Is there an analogous idiom
> in the Chrome codebase and/or the Chrome WebKit API?
>

scoped_ptr<> is the Chromium equivalent of WTF::OwnPtr, but I don't think
there's an equivalent to WTF::PassOwnPtr.  (/cue someone correcting my
ignorance)

PK

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to