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

Unified Diff: content/worker/worker_webkitplatformsupport_impl.cc

Issue 9375024: Get IPC working for Indexed DB in shared workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove param_traits Created 8 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
Index: content/worker/worker_webkitplatformsupport_impl.cc
diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc
index d37621a600c2ee529fa4565f7afc3c2129a73683..08d74c208115818c96fd821c56bbd92a5c955058 100644
--- a/content/worker/worker_webkitplatformsupport_impl.cc
+++ b/content/worker/worker_webkitplatformsupport_impl.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,6 +9,7 @@
#include "content/common/database_util.h"
#include "content/common/file_system/webfilesystem_impl.h"
#include "content/common/file_utilities_messages.h"
+#include "content/common/indexed_db/proxy_webidbfactory_impl.h"
#include "content/common/mime_registry_messages.h"
#include "content/common/webblobregistry_impl.h"
#include "content/common/webmessageportchannel_impl.h"
@@ -208,6 +209,13 @@ long long WorkerWebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin(
return DatabaseUtil::DatabaseGetSpaceAvailable(origin_identifier);
}
+WebKit::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() {
+ if (!web_idb_factory_.get()) {
+ web_idb_factory_.reset(new RendererWebIDBFactoryImpl());
michaeln 2012/02/15 03:45:03 RendererWebIDBFactory looks out of place, is the p
dgrogan 2012/02/15 08:34:59 Yep. Also
+ }
+ return web_idb_factory_.get();
+}
+
WebMimeRegistry::SupportsType
WorkerWebKitPlatformSupportImpl::supportsMIMEType(
const WebString&) {

Powered by Google App Engine
This is Rietveld 408576698