From 90a3fbb1723ba60bcf557121b7bbe80817a7533f Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Sat, 28 Feb 2009 01:13:47 +0000 Subject: Chrome side to pick up new WebKit API changes. WebKit API now provides: - layoutTestMode - support for registering extra local URL schemes - access to the current WebKitClient WebKitClient was extended to include: - access to the default locale - access to the current time - methods to start/stop the shared timer - method to get work scheduled on the main thread - methods to access cookies - method to prefetch hostnames R=dglazkov Review URL: http://codereview.chromium.org/27276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10665 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webplugin_impl.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'webkit/glue/webplugin_impl.cc') diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc index e128227..8449b89 100644 --- a/webkit/glue/webplugin_impl.cc +++ b/webkit/glue/webplugin_impl.cc @@ -41,6 +41,12 @@ MSVC_PUSH_WARNING_LEVEL(0); #include "ScrollView.h" #include "Widget.h" MSVC_POP_WARNING(); + +#include "WebKit.h" +#include "WebKitClient.h" +#include "WebString.h" +#include "WebURL.h" + #undef LOG #include "base/gfx/rect.h" @@ -541,11 +547,11 @@ NPObject* WebPluginImpl::GetPluginElement() { void WebPluginImpl::SetCookie(const GURL& url, const GURL& policy_url, const std::string& cookie) { - webkit_glue::SetCookie(url, policy_url, cookie); + WebKit::webKitClient()->setCookies(url, policy_url, UTF8ToUTF16(cookie)); } std::string WebPluginImpl::GetCookies(const GURL& url, const GURL& policy_url) { - return webkit_glue::GetCookies(url, policy_url); + return UTF16ToUTF8(WebKit::webKitClient()->cookies(url, policy_url)); } void WebPluginImpl::ShowModalHTMLDialog(const GURL& url, int width, int height, -- cgit v1.1