Пример #1
0
bool SharedBuffer::tryReplaceContentsWithPlatformBuffer(SharedBuffer& newContents)
{
    if (!newContents.hasPlatformData())
        return false;

    clear();
    // FIXME: Use GRefPtr instead of GUniquePtr for the SoupBuffer.
    m_soupBuffer.swap(newContents.m_soupBuffer);
    return true;
}