On Thu, Aug 20, 2009 at 10:58 PM, Peter Kasting <[email protected]> wrote:
> On Thu, Aug 20, 2009 at 9:46 PM, Drew Wilson <[email protected]>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) > This is correct (as far as I know) for Chromium code, but we can't use either in the WebKit API public interfaces (webkit/api/public). Feel free to use any of the WebCore types in the WebKit API implementation though (webkit/api/src). --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
