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

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

Issue 352313003: Make it possible to set the HTTP origin header from content (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 if (targetType == TargetIsTextTrack || targetType == TargetIsUnspecified) 231 if (targetType == TargetIsTextTrack || targetType == TargetIsUnspecified)
232 return TargetIsSubresource; 232 return TargetIsSubresource;
233 return targetType; 233 return targetType;
234 } 234 }
235 235
236 WebReferrerPolicy WebURLRequest::referrerPolicy() const 236 WebReferrerPolicy WebURLRequest::referrerPolicy() const
237 { 237 {
238 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer Policy()); 238 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer Policy());
239 } 239 }
240 240
241 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin)
242 {
243 m_private->m_resourceRequest->addHTTPOriginIfNeeded(origin);
244 }
245
241 bool WebURLRequest::hasUserGesture() const 246 bool WebURLRequest::hasUserGesture() const
242 { 247 {
243 return m_private->m_resourceRequest->hasUserGesture(); 248 return m_private->m_resourceRequest->hasUserGesture();
244 } 249 }
245 250
246 void WebURLRequest::setHasUserGesture(bool hasUserGesture) 251 void WebURLRequest::setHasUserGesture(bool hasUserGesture)
247 { 252 {
248 m_private->m_resourceRequest->setHasUserGesture(hasUserGesture); 253 m_private->m_resourceRequest->setHasUserGesture(hasUserGesture);
249 } 254 }
250 255
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // Subclasses may call this directly so a self-assignment check is needed 345 // Subclasses may call this directly so a self-assignment check is needed
341 // here as well as in the public assign method. 346 // here as well as in the public assign method.
342 if (m_private == p) 347 if (m_private == p)
343 return; 348 return;
344 if (m_private) 349 if (m_private)
345 m_private->dispose(); 350 m_private->dispose();
346 m_private = p; 351 m_private = p;
347 } 352 }
348 353
349 } // namespace blink 354 } // 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