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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 bool WebURLRequest::downloadToFile() const | 295 bool WebURLRequest::downloadToFile() const |
296 { | 296 { |
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 |
| 306 { |
| 307 return m_private->m_resourceRequest->skipServiceWorker(); |
| 308 } |
| 309 |
| 310 void WebURLRequest::setSkipServiceWorker(bool skipServiceWorker) |
| 311 { |
| 312 m_private->m_resourceRequest->setSkipServiceWorker(skipServiceWorker); |
| 313 } |
| 314 |
305 WebURLRequest::ExtraData* WebURLRequest::extraData() const | 315 WebURLRequest::ExtraData* WebURLRequest::extraData() const |
306 { | 316 { |
307 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); | 317 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); |
308 if (!data) | 318 if (!data) |
309 return 0; | 319 return 0; |
310 return static_cast<ExtraDataContainer*>(data.get())->extraData(); | 320 return static_cast<ExtraDataContainer*>(data.get())->extraData(); |
311 } | 321 } |
312 | 322 |
313 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) | 323 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) |
314 { | 324 { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 // Subclasses may call this directly so a self-assignment check is needed | 358 // Subclasses may call this directly so a self-assignment check is needed |
349 // here as well as in the public assign method. | 359 // here as well as in the public assign method. |
350 if (m_private == p) | 360 if (m_private == p) |
351 return; | 361 return; |
352 if (m_private) | 362 if (m_private) |
353 m_private->dispose(); | 363 m_private->dispose(); |
354 m_private = p; | 364 m_private = p; |
355 } | 365 } |
356 | 366 |
357 } // namespace blink | 367 } // namespace blink |
OLD | NEW |