| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 return m_private->m_resourceRequest->downloadToFile(); | 297 return m_private->m_resourceRequest->downloadToFile(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 void WebURLRequest::setDownloadToFile(bool downloadToFile) | 300 void WebURLRequest::setDownloadToFile(bool downloadToFile) |
| 301 { | 301 { |
| 302 m_private->m_resourceRequest->setDownloadToFile(downloadToFile); | 302 m_private->m_resourceRequest->setDownloadToFile(downloadToFile); |
| 303 } | 303 } |
| 304 | 304 |
| 305 bool WebURLRequest::skipServiceWorker() const | 305 bool WebURLRequest::skipServiceWorker() const |
| 306 { | 306 { |
| 307 return m_private->m_resourceRequest->skipServiceWorker(); | 307 return serviceWorkerRequestMode() == ServiceWorkerRequestModeSkip; |
| 308 } | 308 } |
| 309 | 309 |
| 310 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker) | 310 WebURLRequest::ServiceWorkerRequestMode WebURLRequest::serviceWorkerRequestMode(
) const |
| 311 { | 311 { |
| 312 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker); | 312 return m_private->m_resourceRequest->serviceWorkerRequestMode(); |
| 313 } |
| 314 |
| 315 void WebURLRequest::setServiceWorkerRequestMode(WebURLRequest::ServiceWorkerRequ
estMode mode) |
| 316 { |
| 317 return m_private->m_resourceRequest->setServiceWorkerRequestMode(mode); |
| 313 } | 318 } |
| 314 | 319 |
| 315 WebURLRequest::ExtraData* WebURLRequest::extraData() const | 320 WebURLRequest::ExtraData* WebURLRequest::extraData() const |
| 316 { | 321 { |
| 317 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); | 322 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); |
| 318 if (!data) | 323 if (!data) |
| 319 return 0; | 324 return 0; |
| 320 return static_cast<ExtraDataContainer*>(data.get())->extraData(); | 325 return static_cast<ExtraDataContainer*>(data.get())->extraData(); |
| 321 } | 326 } |
| 322 | 327 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 // Subclasses may call this directly so a self-assignment check is needed | 363 // Subclasses may call this directly so a self-assignment check is needed |
| 359 // here as well as in the public assign method. | 364 // here as well as in the public assign method. |
| 360 if (m_private == p) | 365 if (m_private == p) |
| 361 return; | 366 return; |
| 362 if (m_private) | 367 if (m_private) |
| 363 m_private->dispose(); | 368 m_private->dispose(); |
| 364 m_private = p; | 369 m_private = p; |
| 365 } | 370 } |
| 366 | 371 |
| 367 } // namespace blink | 372 } // namespace blink |
| OLD | NEW |