diff options
author | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-18 07:56:40 +0000 |
---|---|---|
committer | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-18 07:56:40 +0000 |
commit | 2a58eb1b70534eb673c569f92731694d6e0dafd7 (patch) | |
tree | f1e4021067996a033c76ff20d541168cbb4c1948 | |
parent | 052b40230bc8a42dcf5a32dad4d85f3c84726afe (diff) | |
download | chromium_src-2a58eb1b70534eb673c569f92731694d6e0dafd7.zip chromium_src-2a58eb1b70534eb673c569f92731694d6e0dafd7.tar.gz chromium_src-2a58eb1b70534eb673c569f92731694d6e0dafd7.tar.bz2 |
Call WebKit::Platform::current() instead of webkitPlatformSupport()
for functions that have been moved to the new Platform layer
Review URL: https://chromiumcodereview.appspot.com/11576057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173690 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/renderer/dom_storage/dom_storage_dispatcher.cc | 6 | ||||
-rw-r--r-- | content/shell/webkit_test_runner.cc | 5 | ||||
-rw-r--r-- | webkit/glue/resource_fetcher.cc | 4 | ||||
-rw-r--r-- | webkit/support/test_webplugin_page_delegate.cc | 4 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_request_context.cc | 4 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.cc | 6 |
6 files changed, 15 insertions, 14 deletions
diff --git a/content/renderer/dom_storage/dom_storage_dispatcher.cc b/content/renderer/dom_storage/dom_storage_dispatcher.cc index 86bdaf9..5963694 100644 --- a/content/renderer/dom_storage/dom_storage_dispatcher.cc +++ b/content/renderer/dom_storage/dom_storage_dispatcher.cc @@ -13,7 +13,7 @@ #include "content/renderer/dom_storage/webstoragearea_impl.h" #include "content/renderer/dom_storage/webstoragenamespace_impl.h" #include "content/renderer/render_thread_impl.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h" +#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispatcher.h" #include "webkit/dom_storage/dom_storage_cached_area.h" @@ -143,7 +143,7 @@ class DomStorageDispatcher::ProxyImpl : public DomStorageProxy { // to more reliably commit changes during shutdown. void PushPendingCallback(const CompletionCallback& callback) { if (pending_callbacks_.empty()) - WebKit::webKitPlatformSupport()->suddenTerminationChanged(false); + WebKit::Platform::current()->suddenTerminationChanged(false); pending_callbacks_.push_back(callback); } @@ -151,7 +151,7 @@ class DomStorageDispatcher::ProxyImpl : public DomStorageProxy { CompletionCallback callback = pending_callbacks_.front(); pending_callbacks_.pop_front(); if (pending_callbacks_.empty()) - WebKit::webKitPlatformSupport()->suddenTerminationChanged(true); + WebKit::Platform::current()->suddenTerminationChanged(true); return callback; } diff --git a/content/shell/webkit_test_runner.cc b/content/shell/webkit_test_runner.cc index 69210e6..50cfa00 100644 --- a/content/shell/webkit_test_runner.cc +++ b/content/shell/webkit_test_runner.cc @@ -20,6 +20,7 @@ #include "content/shell/shell_render_process_observer.h" #include "net/base/net_util.h" #include "skia/ext/platform_canvas.h" +#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" @@ -28,7 +29,6 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" @@ -39,6 +39,7 @@ #include "webkit/glue/webkit_glue.h" #include "webkit/glue/webpreferences.h" +using WebKit::Platform; using WebKit::WebContextMenuData; using WebKit::WebDevToolsAgent; using WebKit::WebElement; @@ -197,7 +198,7 @@ void WebKitTestRunner::printMessage(const std::string& message) { } void WebKitTestRunner::postTask(WebTask* task) { - WebKit::webKitPlatformSupport()->callOnMainThread(InvokeTaskHelper, task); + Platform::current()->callOnMainThread(InvokeTaskHelper, task); } void WebKitTestRunner::postDelayedTask(WebTask* task, long long ms) { diff --git a/webkit/glue/resource_fetcher.cc b/webkit/glue/resource_fetcher.cc index 94a3e92..686d53a 100644 --- a/webkit/glue/resource_fetcher.cc +++ b/webkit/glue/resource_fetcher.cc @@ -5,10 +5,10 @@ #include "webkit/glue/resource_fetcher.h" #include "base/logging.h" +#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLLoader.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRequest.h" @@ -54,7 +54,7 @@ void ResourceFetcher::Start(WebFrame* frame) { request.setFirstPartyForCookies(frame->document().firstPartyForCookies()); frame->dispatchWillSendRequest(request); - loader_.reset(WebKit::webKitPlatformSupport()->createURLLoader()); + loader_.reset(WebKit::Platform::current()->createURLLoader()); loader_->loadAsynchronously(request, this); } diff --git a/webkit/support/test_webplugin_page_delegate.cc b/webkit/support/test_webplugin_page_delegate.cc index a71b780..36ac1d8 100644 --- a/webkit/support/test_webplugin_page_delegate.cc +++ b/webkit/support/test_webplugin_page_delegate.cc @@ -4,8 +4,8 @@ #include "webkit/support/test_webplugin_page_delegate.h" +#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h" namespace webkit_support { @@ -22,7 +22,7 @@ WebKit::WebPlugin* TestWebPluginPageDelegate::CreatePluginReplacement( } WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() { - return WebKit::webKitPlatformSupport()->cookieJar(); + return WebKit::Platform::current()->cookieJar(); } } // namespace webkit_support diff --git a/webkit/tools/test_shell/test_shell_request_context.cc b/webkit/tools/test_shell/test_shell_request_context.cc index 2e9e7f2..5bdf4c9 100644 --- a/webkit/tools/test_shell/test_shell_request_context.cc +++ b/webkit/tools/test_shell/test_shell_request_context.cc @@ -25,8 +25,8 @@ #include "net/proxy/proxy_service.h" #include "net/url_request/http_user_agent_settings.h" #include "net/url_request/url_request_job_factory_impl.h" +#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h" #include "webkit/blob/blob_storage_controller.h" #include "webkit/blob/blob_url_request_job_factory.h" #include "webkit/fileapi/file_system_context.h" @@ -135,7 +135,7 @@ void TestShellRequestContext::Init( blob_storage_controller_.reset(new webkit_blob::BlobStorageController()); file_system_context_ = static_cast<SimpleFileSystem*>( - WebKit::webKitPlatformSupport()->fileSystem())->file_system_context(); + WebKit::Platform::current()->fileSystem())->file_system_context(); net::URLRequestJobFactoryImpl* job_factory = new net::URLRequestJobFactoryImpl(); diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc index 95d55f0..f7f3eb0 100644 --- a/webkit/tools/test_shell/test_webview_delegate.cc +++ b/webkit/tools/test_shell/test_webview_delegate.cc @@ -20,6 +20,7 @@ #include "media/base/media_log.h" #include "media/base/message_loop_factory.h" #include "net/base/net_errors.h" +#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObject.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" @@ -36,7 +37,6 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClientMock.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" @@ -825,7 +825,7 @@ void TestWebViewDelegate::openFileSystem( WebFrame* frame, WebFileSystem::Type type, long long size, bool create, WebFileSystemCallbacks* callbacks) { SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>( - WebKit::webKitPlatformSupport()->fileSystem()); + WebKit::Platform::current()->fileSystem()); fileSystem->OpenFileSystem(frame, type, size, create, callbacks); } @@ -837,7 +837,7 @@ WebKit::WebPlugin* TestWebViewDelegate::CreatePluginReplacement( } WebCookieJar* TestWebViewDelegate::GetCookieJar() { - return WebKit::webKitPlatformSupport()->cookieJar(); + return WebKit::Platform::current()->cookieJar(); } // Public methods ------------------------------------------------------------ |