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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 bool WebURLRequest::skipServiceWorker() const | 305 bool WebURLRequest::skipServiceWorker() const |
306 { | 306 { |
307 return m_private->m_resourceRequest->skipServiceWorker(); | 307 return m_private->m_resourceRequest->skipServiceWorker(); |
308 } | 308 } |
309 | 309 |
310 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker) | 310 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker) |
311 { | 311 { |
312 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker); | 312 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker); |
313 } | 313 } |
314 | 314 |
| 315 WebURLRequest::FetchRequestMode WebURLRequest::fetchRequestMode() const |
| 316 { |
| 317 return m_private->m_resourceRequest->fetchRequestMode(); |
| 318 } |
| 319 |
| 320 void WebURLRequest::setFetchRequestMode(WebURLRequest::FetchRequestMode mode) |
| 321 { |
| 322 return m_private->m_resourceRequest->setFetchRequestMode(mode); |
| 323 } |
| 324 |
315 WebURLRequest::ExtraData* WebURLRequest::extraData() const | 325 WebURLRequest::ExtraData* WebURLRequest::extraData() const |
316 { | 326 { |
317 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); | 327 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); |
318 if (!data) | 328 if (!data) |
319 return 0; | 329 return 0; |
320 return static_cast<ExtraDataContainer*>(data.get())->extraData(); | 330 return static_cast<ExtraDataContainer*>(data.get())->extraData(); |
321 } | 331 } |
322 | 332 |
323 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) | 333 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) |
324 { | 334 { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // Subclasses may call this directly so a self-assignment check is needed | 368 // Subclasses may call this directly so a self-assignment check is needed |
359 // here as well as in the public assign method. | 369 // here as well as in the public assign method. |
360 if (m_private == p) | 370 if (m_private == p) |
361 return; | 371 return; |
362 if (m_private) | 372 if (m_private) |
363 m_private->dispose(); | 373 m_private->dispose(); |
364 m_private = p; | 374 m_private = p; |
365 } | 375 } |
366 | 376 |
367 } // namespace blink | 377 } // namespace blink |
OLD | NEW |