summaryrefslogtreecommitdiffstats
path: root/content/renderer/content_renderer_client.h
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/content_renderer_client.h
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/content_renderer_client.h')
-rw-r--r--content/renderer/content_renderer_client.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/content/renderer/content_renderer_client.h b/content/renderer/content_renderer_client.h
index 2ebbf98..33387e8 100644
--- a/content/renderer/content_renderer_client.h
+++ b/content/renderer/content_renderer_client.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/string16.h"
+#include "ipc/ipc_message.h"
#include "content/common/content_client.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
@@ -109,6 +110,20 @@ class ContentRendererClient {
virtual bool ShouldOverridePageVisibilityState(
const RenderView* render_view,
WebKit::WebPageVisibilityState* override_state) const = 0;
+
+ // Return true if the GetCookie request will be handled by the embedder.
+ // Cookies are returned in the cookie parameter.
+ virtual bool HandleGetCookieRequest(RenderView* sender,
+ const GURL& url,
+ const GURL& first_party_for_cookies,
+ std::string* cookies) = 0;
+
+ // Return true if the SetCookie request will be handled by the embedder.
+ // Cookies to be set are passed in the value parameter.
+ virtual bool HandleSetCookieRequest(RenderView* sender,
+ const GURL& url,
+ const GURL& first_party_for_cookies,
+ const std::string& value) = 0;
};
} // namespace content