• yutak@chromium.org's avatar
    Oilpan: Move WebFrameWidgetImpl into Oilpan heap. · c2fb6b81
    yutak@chromium.org authored
    The allocation and deallocation scheme of this class' instance is a bit
    unusual, because these instances are passed to the Chromium side. The contract
    between Chromium and us is basically: "call close() when you finish using it".
    WebFrameWidgetImpl::create() calls leakRef() to keep the object alive, and
    WebFrameWidgetImpl::close() does deref() to free up the object.
    
    To mimic this keep-alive semantics in the Oilpan world, SelfKeepAlive<> is
    used.
    
    This patch fixes a raw pointer in WebFrameWidgetImpl.
    
    BUG=509911
    R=haraken@chromium.org, oilpan-reviews@chromium.org, sigbjornf@opera.com
    
    Review URL: https://codereview.chromium.org/1294293004
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@200800 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    c2fb6b81
WebFrameWidgetImpl.h 8.3 KB