| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 return m_private->m_resourceRequest->requestContext(); | 237 return m_private->m_resourceRequest->requestContext(); |
| 238 } | 238 } |
| 239 | 239 |
| 240 WebURLRequest::FrameType WebURLRequest::frameType() const | 240 WebURLRequest::FrameType WebURLRequest::frameType() const |
| 241 { | 241 { |
| 242 return m_private->m_resourceRequest->frameType(); | 242 return m_private->m_resourceRequest->frameType(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 WebReferrerPolicy WebURLRequest::referrerPolicy() const | 245 WebReferrerPolicy WebURLRequest::referrerPolicy() const |
| 246 { | 246 { |
| 247 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer
Policy()); | 247 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->getRefer
rerPolicy()); |
| 248 } | 248 } |
| 249 | 249 |
| 250 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) | 250 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) |
| 251 { | 251 { |
| 252 m_private->m_resourceRequest->addHTTPOriginIfNeeded(WebSecurityOrigin::creat
eFromString(origin)); | 252 m_private->m_resourceRequest->addHTTPOriginIfNeeded(WebSecurityOrigin::creat
eFromString(origin)); |
| 253 } | 253 } |
| 254 | 254 |
| 255 bool WebURLRequest::hasUserGesture() const | 255 bool WebURLRequest::hasUserGesture() const |
| 256 { | 256 { |
| 257 return m_private->m_resourceRequest->hasUserGesture(); | 257 return m_private->m_resourceRequest->hasUserGesture(); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // Subclasses may call this directly so a self-assignment check is needed | 471 // Subclasses may call this directly so a self-assignment check is needed |
| 472 // here as well as in the public assign method. | 472 // here as well as in the public assign method. |
| 473 if (m_private == p) | 473 if (m_private == p) |
| 474 return; | 474 return; |
| 475 if (m_private) | 475 if (m_private) |
| 476 m_private->dispose(); | 476 m_private->dispose(); |
| 477 m_private = p; | 477 m_private = p; |
| 478 } | 478 } |
| 479 | 479 |
| 480 } // namespace blink | 480 } // namespace blink |
| OLD | NEW |