summaryrefslogtreecommitdiffstats
path: root/content/worker/worker_webkitplatformsupport_impl.cc
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 19:38:19 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 19:38:19 +0000
commit1406f898dc25646d9f242c5ff8d98445953c127b (patch)
treed41dda4efa08b3cf4401f4f96e5ffecdafea2877 /content/worker/worker_webkitplatformsupport_impl.cc
parent260966b417e8cfb6a3d954078b553b7bbf680623 (diff)
downloadchromium_src-1406f898dc25646d9f242c5ff8d98445953c127b.zip
chromium_src-1406f898dc25646d9f242c5ff8d98445953c127b.tar.gz
chromium_src-1406f898dc25646d9f242c5ff8d98445953c127b.tar.bz2
Change WebDatabaseObserverImpl to implement public/platform's WebDatabaseObserver
I'm trying to fix DatabaseObserver layering issue in blink and am going to move WebDatabaseObserver from public/web to public/platform. Depends on blink side patches: part 1: https://codereview.chromium.org/64353002/ (landed) part 2: https://codereview.chromium.org/59423003/ BUG=none TEST=layout_tests Review URL: https://codereview.chromium.org/66823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/worker/worker_webkitplatformsupport_impl.cc')
-rw-r--r--content/worker/worker_webkitplatformsupport_impl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc
index d60eeaa..07abcbf 100644
--- a/content/worker/worker_webkitplatformsupport_impl.cc
+++ b/content/worker/worker_webkitplatformsupport_impl.cc
@@ -15,6 +15,7 @@
#include "content/child/quota_dispatcher.h"
#include "content/child/quota_message_filter.h"
#include "content/child/thread_safe_sender.h"
+#include "content/child/web_database_observer_impl.h"
#include "content/child/webblobregistry_impl.h"
#include "content/child/webmessageportchannel_impl.h"
#include "content/common/file_utilities_messages.h"
@@ -86,6 +87,8 @@ WorkerWebKitPlatformSupportImpl::WorkerWebKitPlatformSupportImpl(
if (sender) {
blob_registry_.reset(new WebBlobRegistryImpl(sender));
web_idb_factory_.reset(new RendererWebIDBFactoryImpl(sender));
+ web_database_observer_impl_.reset(
+ new WebDatabaseObserverImpl(sync_message_filter));
}
}
@@ -213,6 +216,11 @@ blink::WebIDBFactory* WorkerWebKitPlatformSupportImpl::idbFactory() {
return web_idb_factory_.get();
}
+blink::WebPlatformDatabaseObserver*
+WorkerWebKitPlatformSupportImpl::databaseObserver() {
+ return web_database_observer_impl_.get();
+}
+
WebMimeRegistry::SupportsType
WorkerWebKitPlatformSupportImpl::supportsMIMEType(
const WebString&) {