| Index: WebCore/platform/network/BlobData.cpp
|
| ===================================================================
|
| --- WebCore/platform/network/BlobData.cpp (revision 141735)
|
| +++ WebCore/platform/network/BlobData.cpp (working copy)
|
| @@ -30,6 +30,8 @@
|
|
|
| #include "config.h"
|
| #include "BlobData.h"
|
| +#include "BlobURL.h"
|
| +#include "ThreadableBlobRegistry.h"
|
|
|
| #include <wtf/OwnPtr.h>
|
| #include <wtf/PassOwnPtr.h>
|
| @@ -101,4 +103,16 @@
|
| m_items.swap(items);
|
| }
|
|
|
| +
|
| +BlobDataHandle::BlobDataHandle(PassOwnPtr<BlobData> data, long long size)
|
| +{
|
| + m_internalURL = BlobURL::createInternalURL();
|
| + ThreadableBlobRegistry::registerBlobURL(m_internalURL, data);
|
| +}
|
| +
|
| +BlobDataHandle::~BlobDataHandle()
|
| +{
|
| + ThreadableBlobRegistry::unregisterBlobURL(m_internalURL);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|