Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: WebCore/platform/network/BlobData.cpp

Issue 12183004: Patch 3 in the series. (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/platform/network/BlobData.h ('k') | WebKit/chromium/src/AsyncFileSystemChromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « WebCore/platform/network/BlobData.h ('k') | WebKit/chromium/src/AsyncFileSystemChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698