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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 232 } |
233 | 233 |
234 WebURLRequest::RequestContext WebURLRequest::getRequestContext() const { | 234 WebURLRequest::RequestContext WebURLRequest::getRequestContext() const { |
235 return m_resourceRequest->requestContext(); | 235 return m_resourceRequest->requestContext(); |
236 } | 236 } |
237 | 237 |
238 WebURLRequest::FrameType WebURLRequest::getFrameType() const { | 238 WebURLRequest::FrameType WebURLRequest::getFrameType() const { |
239 return m_resourceRequest->frameType(); | 239 return m_resourceRequest->frameType(); |
240 } | 240 } |
241 | 241 |
242 WebReferrerPolicy WebURLRequest::referrerPolicy() const { | 242 WebReferrerPolicy WebURLRequest::getReferrerPolicy() const { |
243 return static_cast<WebReferrerPolicy>(m_resourceRequest->getReferrerPolicy()); | 243 return static_cast<WebReferrerPolicy>(m_resourceRequest->getReferrerPolicy()); |
244 } | 244 } |
245 | 245 |
246 void WebURLRequest::addHTTPOriginIfNeeded(const WebSecurityOrigin& origin) { | 246 void WebURLRequest::addHTTPOriginIfNeeded(const WebSecurityOrigin& origin) { |
247 m_resourceRequest->addHTTPOriginIfNeeded(origin.get()); | 247 m_resourceRequest->addHTTPOriginIfNeeded(origin.get()); |
248 } | 248 } |
249 | 249 |
250 bool WebURLRequest::hasUserGesture() const { | 250 bool WebURLRequest::hasUserGesture() const { |
251 return m_resourceRequest->hasUserGesture(); | 251 return m_resourceRequest->hasUserGesture(); |
252 } | 252 } |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 } | 422 } |
423 | 423 |
424 const ResourceRequest& WebURLRequest::toResourceRequest() const { | 424 const ResourceRequest& WebURLRequest::toResourceRequest() const { |
425 DCHECK(m_resourceRequest); | 425 DCHECK(m_resourceRequest); |
426 return *m_resourceRequest; | 426 return *m_resourceRequest; |
427 } | 427 } |
428 | 428 |
429 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} | 429 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} |
430 | 430 |
431 } // namespace blink | 431 } // namespace blink |
OLD | NEW |