| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |