OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |