summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorpilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-11 00:09:59 +0000
committerpilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-11 00:09:59 +0000
commit00fccb4ec30b65ac32f78f1bff0cf632e24d0a50 (patch)
treef62a2ff1dee93ad633f071b883621242b4d0ba20 /content
parent8fe72e388e8d3d36014c3f4c1fdb17ccf534c8ad (diff)
downloadchromium_src-00fccb4ec30b65ac32f78f1bff0cf632e24d0a50.zip
chromium_src-00fccb4ec30b65ac32f78f1bff0cf632e24d0a50.tar.gz
chromium_src-00fccb4ec30b65ac32f78f1bff0cf632e24d0a50.tar.bz2
We're removing the sharedWorkerRepository() function from WebKit
and replacing it with a setSharedWorkerRepository() function that is called once at initialization. Review URL: https://chromiumcodereview.appspot.com/10990121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc6
-rw-r--r--content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h1
-rw-r--r--content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc6
-rw-r--r--content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h1
-rw-r--r--content/renderer/render_thread_impl.cc3
-rw-r--r--content/worker/worker_webkitplatformsupport_impl.cc5
-rw-r--r--content/worker/worker_webkitplatformsupport_impl.h1
7 files changed, 3 insertions, 20 deletions
diff --git a/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc b/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
index 1b77184..f941f97 100644
--- a/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
+++ b/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc
@@ -114,12 +114,6 @@ WebKit::WebData BrowserWebKitPlatformSupportImpl::loadResource(
return WebKit::WebData();
}
-WebKit::WebSharedWorkerRepository*
-BrowserWebKitPlatformSupportImpl::sharedWorkerRepository() {
- NOTREACHED();
- return NULL;
-}
-
int BrowserWebKitPlatformSupportImpl::databaseDeleteFile(
const WebKit::WebString& vfs_file_name, bool sync_dir) {
const FilePath path = webkit_base::WebStringToFilePath(vfs_file_name);
diff --git a/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h b/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h
index 611f82f..11d4ea8 100644
--- a/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h
+++ b/content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h
@@ -38,7 +38,6 @@ class BrowserWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl {
virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle();
virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*);
virtual WebKit::WebData loadResource(const char* name);
- virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
bool sync_dir);
diff --git a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
index 40fb92a..96472c3 100644
--- a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
+++ b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc
@@ -249,12 +249,6 @@ void PpapiWebKitPlatformSupportImpl::dispatchStorageEvent(
NOTREACHED();
}
-WebKit::WebSharedWorkerRepository*
-PpapiWebKitPlatformSupportImpl::sharedWorkerRepository() {
- NOTREACHED();
- return NULL;
-}
-
int PpapiWebKitPlatformSupportImpl::databaseDeleteFile(
const WebKit::WebString& vfs_file_name, bool sync_dir) {
NOTREACHED();
diff --git a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h
index 53a3fc5..7a1a448 100644
--- a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h
+++ b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h
@@ -45,7 +45,6 @@ class PpapiWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl {
const WebKit::WebString& oldValue, const WebKit::WebString& newValue,
const WebKit::WebString& origin, const WebKit::WebURL& url,
bool isLocalStorage);
- virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
bool sync_dir);
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index bf88ea4..9b9adda 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -89,6 +89,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerRepository.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
#include "ui/base/layout.h"
#include "ui/base/ui_base_switches.h"
@@ -557,6 +558,8 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
webkit_platform_support_.reset(new RendererWebKitPlatformSupportImpl);
WebKit::initialize(webkit_platform_support_.get());
+ WebKit::setSharedWorkerRepository(
+ webkit_platform_support_.get()->sharedWorkerRepository());
WebKit::WebCompositorSupport* compositor_support =
WebKit::Platform::current()->compositorSupport();
diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc
index 3fa7273..2480974 100644
--- a/content/worker/worker_webkitplatformsupport_impl.cc
+++ b/content/worker/worker_webkitplatformsupport_impl.cc
@@ -171,11 +171,6 @@ void WorkerWebKitPlatformSupportImpl::dispatchStorageEvent(
NOTREACHED();
}
-WebSharedWorkerRepository*
-WorkerWebKitPlatformSupportImpl::sharedWorkerRepository() {
- return 0;
-}
-
WebKitPlatformSupport::FileHandle
WorkerWebKitPlatformSupportImpl::databaseOpenFile(
const WebString& vfs_file_name, int desired_flags) {
diff --git a/content/worker/worker_webkitplatformsupport_impl.h b/content/worker/worker_webkitplatformsupport_impl.h
index 4bc2172..8124a25 100644
--- a/content/worker/worker_webkitplatformsupport_impl.h
+++ b/content/worker/worker_webkitplatformsupport_impl.h
@@ -47,7 +47,6 @@ class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl,
const WebKit::WebString& key, const WebKit::WebString& old_value,
const WebKit::WebString& new_value, const WebKit::WebString& origin,
const WebKit::WebURL& url, bool is_local_storage);
- virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
virtual WebKit::WebKitPlatformSupport::FileHandle databaseOpenFile(
const WebKit::WebString& vfs_file_name, int desired_flags);