| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 WebURLRequest::FetchCredentialsMode WebURLRequest::fetchCredentialsMode() const | 353 WebURLRequest::FetchCredentialsMode WebURLRequest::fetchCredentialsMode() const |
| 354 { | 354 { |
| 355 return m_private->m_resourceRequest->fetchCredentialsMode(); | 355 return m_private->m_resourceRequest->fetchCredentialsMode(); |
| 356 } | 356 } |
| 357 | 357 |
| 358 void WebURLRequest::setFetchCredentialsMode(WebURLRequest::FetchCredentialsMode
mode) | 358 void WebURLRequest::setFetchCredentialsMode(WebURLRequest::FetchCredentialsMode
mode) |
| 359 { | 359 { |
| 360 return m_private->m_resourceRequest->setFetchCredentialsMode(mode); | 360 return m_private->m_resourceRequest->setFetchCredentialsMode(mode); |
| 361 } | 361 } |
| 362 | 362 |
| 363 WebURLRequest::FetchRedirectMode WebURLRequest::fetchRedirectMode() const |
| 364 { |
| 365 return m_private->m_resourceRequest->fetchRedirectMode(); |
| 366 } |
| 367 |
| 368 void WebURLRequest::setFetchRedirectMode(WebURLRequest::FetchRedirectMode redire
ct) |
| 369 { |
| 370 return m_private->m_resourceRequest->setFetchRedirectMode(redirect); |
| 371 } |
| 372 |
| 363 WebURLRequest::ExtraData* WebURLRequest::extraData() const | 373 WebURLRequest::ExtraData* WebURLRequest::extraData() const |
| 364 { | 374 { |
| 365 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); | 375 RefPtr<ResourceRequest::ExtraData> data = m_private->m_resourceRequest->extr
aData(); |
| 366 if (!data) | 376 if (!data) |
| 367 return 0; | 377 return 0; |
| 368 return static_cast<ExtraDataContainer*>(data.get())->extraData(); | 378 return static_cast<ExtraDataContainer*>(data.get())->extraData(); |
| 369 } | 379 } |
| 370 | 380 |
| 371 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) | 381 void WebURLRequest::setExtraData(WebURLRequest::ExtraData* extraData) |
| 372 { | 382 { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // Subclasses may call this directly so a self-assignment check is needed | 459 // Subclasses may call this directly so a self-assignment check is needed |
| 450 // here as well as in the public assign method. | 460 // here as well as in the public assign method. |
| 451 if (m_private == p) | 461 if (m_private == p) |
| 452 return; | 462 return; |
| 453 if (m_private) | 463 if (m_private) |
| 454 m_private->dispose(); | 464 m_private->dispose(); |
| 455 m_private = p; | 465 m_private = p; |
| 456 } | 466 } |
| 457 | 467 |
| 458 } // namespace blink | 468 } // namespace blink |
| OLD | NEW |