| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bool WebURLRequest::reportRawHeaders() const | 222 bool WebURLRequest::reportRawHeaders() const |
| 223 { | 223 { |
| 224 return m_private->m_resourceRequest->reportRawHeaders(); | 224 return m_private->m_resourceRequest->reportRawHeaders(); |
| 225 } | 225 } |
| 226 | 226 |
| 227 WebURLRequest::RequestContext WebURLRequest::requestContext() const | 227 WebURLRequest::RequestContext WebURLRequest::requestContext() const |
| 228 { | 228 { |
| 229 return m_private->m_resourceRequest->requestContext(); | 229 return m_private->m_resourceRequest->requestContext(); |
| 230 } | 230 } |
| 231 | 231 |
| 232 WebURLRequest::FrameType WebURLRequest::frameType() const |
| 233 { |
| 234 return m_private->m_resourceRequest->frameType(); |
| 235 } |
| 236 |
| 232 WebReferrerPolicy WebURLRequest::referrerPolicy() const | 237 WebReferrerPolicy WebURLRequest::referrerPolicy() const |
| 233 { | 238 { |
| 234 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer
Policy()); | 239 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer
Policy()); |
| 235 } | 240 } |
| 236 | 241 |
| 237 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) | 242 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) |
| 238 { | 243 { |
| 239 m_private->m_resourceRequest->addHTTPOriginIfNeeded(origin); | 244 m_private->m_resourceRequest->addHTTPOriginIfNeeded(origin); |
| 240 } | 245 } |
| 241 | 246 |
| 242 bool WebURLRequest::hasUserGesture() const | 247 bool WebURLRequest::hasUserGesture() const |
| 243 { | 248 { |
| 244 return m_private->m_resourceRequest->hasUserGesture(); | 249 return m_private->m_resourceRequest->hasUserGesture(); |
| 245 } | 250 } |
| 246 | 251 |
| 247 void WebURLRequest::setHasUserGesture(bool hasUserGesture) | 252 void WebURLRequest::setHasUserGesture(bool hasUserGesture) |
| 248 { | 253 { |
| 249 m_private->m_resourceRequest->setHasUserGesture(hasUserGesture); | 254 m_private->m_resourceRequest->setHasUserGesture(hasUserGesture); |
| 250 } | 255 } |
| 251 | 256 |
| 252 void WebURLRequest::setRequestContext(RequestContext requestContext) | 257 void WebURLRequest::setRequestContext(RequestContext requestContext) |
| 253 { | 258 { |
| 254 m_private->m_resourceRequest->setRequestContext(requestContext); | 259 m_private->m_resourceRequest->setRequestContext(requestContext); |
| 255 } | 260 } |
| 256 | 261 |
| 262 void WebURLRequest::setFrameType(FrameType frameType) |
| 263 { |
| 264 m_private->m_resourceRequest->setFrameType(frameType); |
| 265 } |
| 266 |
| 257 int WebURLRequest::requestorID() const | 267 int WebURLRequest::requestorID() const |
| 258 { | 268 { |
| 259 return m_private->m_resourceRequest->requestorID(); | 269 return m_private->m_resourceRequest->requestorID(); |
| 260 } | 270 } |
| 261 | 271 |
| 262 void WebURLRequest::setRequestorID(int requestorID) | 272 void WebURLRequest::setRequestorID(int requestorID) |
| 263 { | 273 { |
| 264 m_private->m_resourceRequest->setRequestorID(requestorID); | 274 m_private->m_resourceRequest->setRequestorID(requestorID); |
| 265 } | 275 } |
| 266 | 276 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 return targetType; | 502 return targetType; |
| 493 } | 503 } |
| 494 | 504 |
| 495 void WebURLRequest::setTargetType(TargetType targetType) | 505 void WebURLRequest::setTargetType(TargetType targetType) |
| 496 { | 506 { |
| 497 setRequestContext(WebURLRequest::requestContextFromTargetType(targetType)); | 507 setRequestContext(WebURLRequest::requestContextFromTargetType(targetType)); |
| 498 } | 508 } |
| 499 | 509 |
| 500 | 510 |
| 501 } // namespace blink | 511 } // namespace blink |
| OLD | NEW |