summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_glue.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 9508c50..5f63123 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -302,6 +302,17 @@ ResourceLoaderBridge* ResourceLoaderBridge::Create(
mixed_content, 0);
}
+void SetCookie(const GURL& url, const GURL& policy_url,
+ const std::string& cookie) {
+ RenderThread::current()->Send(new ViewHostMsg_SetCookie(url, policy_url, cookie));
+}
+
+std::string GetCookies(const GURL& url, const GURL& policy_url) {
+ std::string cookies;
+ RenderThread::current()->Send(new ViewHostMsg_GetCookies(url, policy_url, &cookies));
+ return cookies;
+}
+
void NotifyCacheStats() {
// Update the browser about our cache
// NOTE: Since this can be called from the plugin process, we might not have