Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4396)

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 7764014: Remove handling for the ViewHostMsg_GetCookies and ViewHostMsg_SetCookies from Chrome. These mess... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | content/renderer/content_renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
===================================================================
--- chrome/renderer/chrome_content_renderer_client.cc (revision 98657)
+++ chrome/renderer/chrome_content_renderer_client.cc (working copy)
@@ -66,6 +66,7 @@
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/renderer_resources.h"
+#include "ipc/ipc_sync_message.h"
#include "net/base/net_errors.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
@@ -684,6 +685,35 @@
return true;
}
+bool ChromeContentRendererClient::HandleGetCookieRequest(
+ RenderView* sender,
+ const GURL& url,
+ const GURL& first_party_for_cookies,
+ std::string* cookies) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) {
+ IPC::SyncMessage* msg = new ChromeViewHostMsg_GetCookies(
+ MSG_ROUTING_NONE, url, first_party_for_cookies, cookies);
+ msg->EnableMessagePumping();
+ sender->Send(msg);
+ return true;
+ }
+ return false;
+}
+
+bool ChromeContentRendererClient::HandleSetCookieRequest(
+ RenderView* sender,
+ const GURL& url,
+ const GURL& first_party_for_cookies,
+ const std::string& value) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) {
+ sender->Send(new ChromeViewHostMsg_SetCookie(
+ MSG_ROUTING_NONE, url, first_party_for_cookies, value));
+ return true;
+ }
+ return false;
+}
+
+
void ChromeContentRendererClient::SetExtensionDispatcher(
ExtensionDispatcher* extension_dispatcher) {
extension_dispatcher_.reset(extension_dispatcher);
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | content/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698