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

Side by Side Diff: Source/platform/exported/WebURLRequest.cpp

Issue 1071893003: WebURLRequest: Track the requesting document's URL through navigations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/CreateWindow.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "public/platform/WebURLRequest.h" 32 #include "public/platform/WebURLRequest.h"
33 33
34 #include "platform/exported/WebURLRequestPrivate.h" 34 #include "platform/exported/WebURLRequestPrivate.h"
35 #include "platform/network/ResourceRequest.h" 35 #include "platform/network/ResourceRequest.h"
36 #include "public/platform/WebHTTPBody.h" 36 #include "public/platform/WebHTTPBody.h"
37 #include "public/platform/WebHTTPHeaderVisitor.h" 37 #include "public/platform/WebHTTPHeaderVisitor.h"
38 #include "public/platform/WebSecurityOrigin.h"
38 #include "public/platform/WebURL.h" 39 #include "public/platform/WebURL.h"
39 40
40 namespace blink { 41 namespace blink {
41 42
42 namespace { 43 namespace {
43 44
44 class ExtraDataContainer : public ResourceRequest::ExtraData { 45 class ExtraDataContainer : public ResourceRequest::ExtraData {
45 public: 46 public:
46 static PassRefPtr<ExtraDataContainer> create(WebURLRequest::ExtraData* extra Data) { return adoptRef(new ExtraDataContainer(extraData)); } 47 static PassRefPtr<ExtraDataContainer> create(WebURLRequest::ExtraData* extra Data) { return adoptRef(new ExtraDataContainer(extraData)); }
47 48
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 WebURL WebURLRequest::firstPartyForCookies() const 118 WebURL WebURLRequest::firstPartyForCookies() const
118 { 119 {
119 return m_private->m_resourceRequest->firstPartyForCookies(); 120 return m_private->m_resourceRequest->firstPartyForCookies();
120 } 121 }
121 122
122 void WebURLRequest::setFirstPartyForCookies(const WebURL& firstPartyForCookies) 123 void WebURLRequest::setFirstPartyForCookies(const WebURL& firstPartyForCookies)
123 { 124 {
124 m_private->m_resourceRequest->setFirstPartyForCookies(firstPartyForCookies); 125 m_private->m_resourceRequest->setFirstPartyForCookies(firstPartyForCookies);
125 } 126 }
126 127
128 WebSecurityOrigin WebURLRequest::requestorOrigin() const
129 {
130 return m_private->m_resourceRequest->requestorOrigin();
131 }
132
133 void WebURLRequest::setRequestorOrigin(const WebSecurityOrigin& requestorOrigin)
134 {
135 m_private->m_resourceRequest->setRequestorOrigin(requestorOrigin);
136 }
137
127 bool WebURLRequest::allowStoredCredentials() const 138 bool WebURLRequest::allowStoredCredentials() const
128 { 139 {
129 return m_private->m_resourceRequest->allowStoredCredentials(); 140 return m_private->m_resourceRequest->allowStoredCredentials();
130 } 141 }
131 142
132 void WebURLRequest::setAllowStoredCredentials(bool allowStoredCredentials) 143 void WebURLRequest::setAllowStoredCredentials(bool allowStoredCredentials)
133 { 144 {
134 m_private->m_resourceRequest->setAllowStoredCredentials(allowStoredCredentia ls); 145 m_private->m_resourceRequest->setAllowStoredCredentials(allowStoredCredentia ls);
135 } 146 }
136 147
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // Subclasses may call this directly so a self-assignment check is needed 449 // Subclasses may call this directly so a self-assignment check is needed
439 // here as well as in the public assign method. 450 // here as well as in the public assign method.
440 if (m_private == p) 451 if (m_private == p)
441 return; 452 return;
442 if (m_private) 453 if (m_private)
443 m_private->dispose(); 454 m_private->dispose();
444 m_private = p; 455 m_private = p;
445 } 456 }
446 457
447 } // namespace blink 458 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/CreateWindow.cpp ('k') | Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698