summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chromium_bridge_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 22:56:58 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-10 22:56:58 +0000
commitc277dd9a41daefd40f5a33b2dae154d6c554618d (patch)
tree28790acce758008b1d38b1147eb9ea8f9dd87d9b /webkit/glue/chromium_bridge_impl.cc
parent06a11cab7c6c726ac97606dc70d6012e4455ecfd (diff)
downloadchromium_src-c277dd9a41daefd40f5a33b2dae154d6c554618d.zip
chromium_src-c277dd9a41daefd40f5a33b2dae154d6c554618d.tar.gz
chromium_src-c277dd9a41daefd40f5a33b2dae154d6c554618d.tar.bz2
More ChromiumBridge action to eliminate glue dependencies from port.
I also cleaned up Resource{Request,Response} a tad. R=eseidel Review URL: http://codereview.chromium.org/10248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/chromium_bridge_impl.cc')
-rw-r--r--webkit/glue/chromium_bridge_impl.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc
index ff977ef..010e7e3 100644
--- a/webkit/glue/chromium_bridge_impl.cc
+++ b/webkit/glue/chromium_bridge_impl.cc
@@ -45,6 +45,28 @@ static ChromeClientImpl* ToChromeClient(Widget* widget) {
return static_cast<ChromeClientImpl*>(page->chrome()->client());
}
+// Cookies --------------------------------------------------------------------
+
+void ChromiumBridge::setCookies(
+ const KURL& url, const KURL& policy_url, const String& cookie) {
+ webkit_glue::SetCookie(
+ webkit_glue::KURLToGURL(url),
+ webkit_glue::KURLToGURL(policy_url),
+ webkit_glue::StringToStdString(cookie));
+}
+
+String ChromiumBridge::cookies(const KURL& url, const KURL& policy_url) {
+ return webkit_glue::StdStringToString(webkit_glue::GetCookies(
+ webkit_glue::KURLToGURL(url),
+ webkit_glue::KURLToGURL(policy_url)));
+}
+
+// DNS ------------------------------------------------------------------------
+
+void ChromiumBridge::prefetchDNS(const String& hostname) {
+ webkit_glue::PrefetchDns(webkit_glue::StringToStdString(hostname));
+}
+
// Screen ---------------------------------------------------------------------
int ChromiumBridge::screenDepth(Widget* widget) {