summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-18 00:12:25 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-18 00:12:25 +0000
commit67b1a17dacb119a71c7f8f3e12409920a6926b25 (patch)
tree164eebc9cda382a0d9b14a0e251d4b0307846872 /webkit/glue
parent3848a1d323dd27c4a14816ef124ec6ab25f192bb (diff)
downloadchromium_src-67b1a17dacb119a71c7f8f3e12409920a6926b25.zip
chromium_src-67b1a17dacb119a71c7f8f3e12409920a6926b25.tar.gz
chromium_src-67b1a17dacb119a71c7f8f3e12409920a6926b25.tar.bz2
Use the new WebDocument::firstPartyForCookies method.
R=abarth BUG=36957 TEST=none Review URL: http://codereview.chromium.org/1047005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/webplugin_impl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 34b8261..f42d36e 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -16,6 +16,7 @@
#include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h"
#include "third_party/WebKit/WebKit/chromium/public/WebData.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebDocument.h"
#include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
#include "third_party/WebKit/WebKit/chromium/public/WebHTTPBody.h"
#include "third_party/WebKit/WebKit/chromium/public/WebHTTPHeaderVisitor.h"
@@ -585,8 +586,8 @@ WebPluginImpl::RoutingStatus WebPluginImpl::RouteToFrame(
SetReferrer(&request, referrer_flag);
request.setHTTPMethod(WebString::fromUTF8(method));
- // TODO(wtc): add a WebDocument::firstPartyForCookies method.
- request.setFirstPartyForCookies(webframe_->top()->url());
+ request.setFirstPartyForCookies(
+ webframe_->document().firstPartyForCookies());
if (len > 0) {
if (!SetPostData(&request, buf, len)) {
// Uhoh - we're in trouble. There isn't a good way
@@ -982,8 +983,8 @@ bool WebPluginImpl::InitiateHTTPRequest(unsigned long resource_id,
info.client = client;
info.request.initialize();
info.request.setURL(url);
- // TODO(wtc): add a WebDocument::firstPartyForCookies method.
- info.request.setFirstPartyForCookies(webframe_->top()->url());
+ info.request.setFirstPartyForCookies(
+ webframe_->document().firstPartyForCookies());
info.request.setRequestorProcessID(delegate_->GetProcessId());
info.request.setTargetType(WebURLRequest::TargetIsObject);
info.request.setHTTPMethod(WebString::fromUTF8(method));