summaryrefslogtreecommitdiffstats
path: root/content/renderer/renderer_webcookiejar_impl.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-29 23:48:05 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-29 23:48:05 +0000
commit6a3eededf6727c0c15cf33f3eea5e068dcfe5b2c (patch)
tree6441164eeb12a8efb4bdbefec73e33428d7e4c4a /content/renderer/renderer_webcookiejar_impl.cc
parent6005d68f128bbe5d2769d07ada097ff69fc0286a (diff)
downloadchromium_src-6a3eededf6727c0c15cf33f3eea5e068dcfe5b2c.zip
chromium_src-6a3eededf6727c0c15cf33f3eea5e068dcfe5b2c.tar.gz
chromium_src-6a3eededf6727c0c15cf33f3eea5e068dcfe5b2c.tar.bz2
Remove handling for the ViewHostMsg_GetCookies and ViewHostMsg_SetCookies from Chrome. These messages
were being handled in Chrome only for ChromeFrame processes, i.e. to route the cookie requests to the host browser. We now send out the ChromeViewHostMsg_GetCookies and ChromeViewHostMsg_SetCookies IPCs for ChromeFrame processes. These are sent out by the embedder instance which lives in the renderer. ChromeRenderMessageFilter handles these messages. This is a continuation of the changes to not handle IPC messages from content in Chrome and vice versa. BUG=87335 TEST=No change in functionality. chrome frame net tests and chrome frame tests should pass. Review URL: http://codereview.chromium.org/7764014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/renderer_webcookiejar_impl.cc')
-rw-r--r--content/renderer/renderer_webcookiejar_impl.cc19
1 files changed, 14 insertions, 5 deletions
diff --git a/content/renderer/renderer_webcookiejar_impl.cc b/content/renderer/renderer_webcookiejar_impl.cc
index 75f1e30..53cec96 100644
--- a/content/renderer/renderer_webcookiejar_impl.cc
+++ b/content/renderer/renderer_webcookiejar_impl.cc
@@ -6,7 +6,9 @@
#include "base/utf_string_conversions.h"
#include "content/common/view_messages.h"
+#include "content/renderer/content_renderer_client.h"
#include "content/renderer/render_thread.h"
+#include "content/renderer/render_view.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h"
#include "webkit/glue/webcookie.h"
@@ -20,16 +22,23 @@ void RendererWebCookieJarImpl::setCookie(
const WebString& value) {
std::string value_utf8;
UTF16ToUTF8(value.data(), value.length(), &value_utf8);
- sender_->Send(new ViewHostMsg_SetCookie(
- MSG_ROUTING_NONE, url, first_party_for_cookies, value_utf8));
+ if (!content::GetContentClient()->renderer()->HandleSetCookieRequest(
+ sender_, url, first_party_for_cookies, value_utf8)) {
+ sender_->Send(new ViewHostMsg_SetCookie(
+ MSG_ROUTING_NONE, url, first_party_for_cookies, value_utf8));
+ }
}
WebString RendererWebCookieJarImpl::cookies(
const WebURL& url, const WebURL& first_party_for_cookies) {
std::string value_utf8;
- // NOTE: This may pump events (see RenderThread::Send).
- sender_->Send(new ViewHostMsg_GetCookies(
- MSG_ROUTING_NONE, url, first_party_for_cookies, &value_utf8));
+
+ if (!content::GetContentClient()->renderer()->HandleGetCookieRequest(
+ sender_, url, first_party_for_cookies, &value_utf8)) {
+ // NOTE: This may pump events (see RenderThread::Send).
+ sender_->Send(new ViewHostMsg_GetCookies(
+ MSG_ROUTING_NONE, url, first_party_for_cookies, &value_utf8));
+ }
return WebString::fromUTF8(value_utf8);
}