summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webkitclient_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 20:04:13 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 20:04:13 +0000
commit8c53e336c2e8eff03981b6ad98089f0c4be12211 (patch)
tree9a86321a9c93e7333c12cf3d716e68f024806681 /chrome/renderer/renderer_webkitclient_impl.cc
parent7f69a1b80803a9c5af8369f3b3f25f300522dc2e (diff)
downloadchromium_src-8c53e336c2e8eff03981b6ad98089f0c4be12211.zip
chromium_src-8c53e336c2e8eff03981b6ad98089f0c4be12211.tar.gz
chromium_src-8c53e336c2e8eff03981b6ad98089f0c4be12211.tar.bz2
Revert 38777 - Change ViewHostMsg_SetCookie to be routed so we can show the blocked cookie
notification. We get the RenderView identifier by looking at the current WebFrame. R=jorlow BUG=34573 TEST=none Review URL: http://codereview.chromium.org/596050 TBR=darin@chromium.org Review URL: http://codereview.chromium.org/597047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webkitclient_impl.cc')
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.cc19
1 files changed, 4 insertions, 15 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.cc b/chrome/renderer/renderer_webkitclient_impl.cc
index c9e3da7..5580ab9 100644
--- a/chrome/renderer/renderer_webkitclient_impl.cc
+++ b/chrome/renderer/renderer_webkitclient_impl.cc
@@ -1,6 +1,6 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in the
+// LICENSE file.
#include "chrome/renderer/renderer_webkitclient_impl.h"
@@ -21,12 +21,10 @@
#include "chrome/plugin/npobject_util.h"
#include "chrome/renderer/net/render_dns_master.h"
#include "chrome/renderer/render_thread.h"
-#include "chrome/renderer/render_view.h"
#include "chrome/renderer/renderer_webstoragenamespace_impl.h"
#include "chrome/renderer/visitedlink_slave.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCookie.h"
-#include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
#include "third_party/WebKit/WebKit/chromium/public/WebStorageEventDispatcher.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
#include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
@@ -45,7 +43,6 @@
using WebKit::WebApplicationCacheHost;
using WebKit::WebApplicationCacheHostClient;
using WebKit::WebCookie;
-using WebKit::WebFrame;
using WebKit::WebKitClient;
using WebKit::WebStorageArea;
using WebKit::WebStorageEventDispatcher;
@@ -114,18 +111,10 @@ RendererWebKitClientImpl::createMessagePortChannel() {
void RendererWebKitClientImpl::setCookies(const WebURL& url,
const WebURL& first_party_for_cookies,
const WebString& value) {
- // TODO(darin): Modify WebKit to pass the WebFrame.
- RenderView* view =
- RenderView::FromWebView(WebFrame::frameForCurrentContext()->view());
- DCHECK(view);
-
std::string value_utf8;
UTF16ToUTF8(value.data(), value.length(), &value_utf8);
RenderThread::current()->Send(
- new ViewHostMsg_SetCookie(view->routing_id(),
- url,
- first_party_for_cookies,
- value_utf8));
+ new ViewHostMsg_SetCookie(url, first_party_for_cookies, value_utf8));
}
WebString RendererWebKitClientImpl::cookies(