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

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

Issue 2264503002: Clean up SecurityOrigin handling around CrossOriginAccessControl::handleRedirect() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 unified diff | Download patch
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return m_resourceRequest->frameType(); 266 return m_resourceRequest->frameType();
267 } 267 }
268 268
269 WebReferrerPolicy WebURLRequest::referrerPolicy() const 269 WebReferrerPolicy WebURLRequest::referrerPolicy() const
270 { 270 {
271 return static_cast<WebReferrerPolicy>(m_resourceRequest->getReferrerPolicy() ); 271 return static_cast<WebReferrerPolicy>(m_resourceRequest->getReferrerPolicy() );
272 } 272 }
273 273
274 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) 274 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin)
275 { 275 {
276 m_resourceRequest->addHTTPOriginIfNeeded(WebSecurityOrigin::createFromString (origin)); 276 m_resourceRequest->addHTTPOriginIfNeeded(WebSecurityOrigin::createFromString (origin).get());
277 } 277 }
278 278
279 bool WebURLRequest::hasUserGesture() const 279 bool WebURLRequest::hasUserGesture() const
280 { 280 {
281 return m_resourceRequest->hasUserGesture(); 281 return m_resourceRequest->hasUserGesture();
282 } 282 }
283 283
284 void WebURLRequest::setHasUserGesture(bool hasUserGesture) 284 void WebURLRequest::setHasUserGesture(bool hasUserGesture)
285 { 285 {
286 m_resourceRequest->setHasUserGesture(hasUserGesture); 286 m_resourceRequest->setHasUserGesture(hasUserGesture);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 DCHECK(m_resourceRequest); 487 DCHECK(m_resourceRequest);
488 return *m_resourceRequest; 488 return *m_resourceRequest;
489 } 489 }
490 490
491 WebURLRequest::WebURLRequest(ResourceRequest& r) 491 WebURLRequest::WebURLRequest(ResourceRequest& r)
492 : m_resourceRequest(&r) 492 : m_resourceRequest(&r)
493 { 493 {
494 } 494 }
495 495
496 } // namespace blink 496 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/platform/network/ResourceRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698