Index: content/common/webkitplatformsupport_impl.cc |
=================================================================== |
--- content/common/webkitplatformsupport_impl.cc (revision 183651) |
+++ content/common/webkitplatformsupport_impl.cc (working copy) |
@@ -4,21 +4,26 @@ |
#include "base/command_line.h" |
#include "content/common/child_thread.h" |
+#include "content/common/fileapi/webblobregistry_impl.h" |
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
#include "content/common/socket_stream_dispatcher.h" |
+#include "content/common/thread_safe_sender.h" |
#include "content/common/webkitplatformsupport_impl.h" |
#include "content/public/common/content_client.h" |
#include "content/public/common/content_switches.h" |
#include "googleurl/src/gurl.h" |
#include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
+using WebKit::WebBlobRegistry; |
+ |
namespace content { |
namespace { |
WebKitPlatformSupportImpl::OffscreenContextFactory* g_context_factory = NULL; |
} |
-WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { |
+WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() |
+ : thread_safe_sender_(ChildThread::current()->thread_safe_sender()) { |
} |
WebKitPlatformSupportImpl::~WebKitPlatformSupportImpl() { |
@@ -74,6 +79,12 @@ |
} |
} |
+WebBlobRegistry* WebKitPlatformSupportImpl::blobRegistry() { |
+ if (!blob_registry_.get()) |
+ blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender())); |
+ return blob_registry_.get(); |
+} |
+ |
// static |
void WebKitPlatformSupportImpl::SetOffscreenContextFactoryForTest( |
OffscreenContextFactory factory) { |