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

Unified Diff: content/common/webkitplatformsupport_impl.cc

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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 | « content/common/webkitplatformsupport_impl.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/common/webkitplatformsupport_impl.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698