| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 } | 545 } |
| 546 | 546 |
| 547 void Resource::setRevalidatingRequest(const ResourceRequest& request) | 547 void Resource::setRevalidatingRequest(const ResourceRequest& request) |
| 548 { | 548 { |
| 549 m_revalidatingRequest = request; | 549 m_revalidatingRequest = request; |
| 550 m_status = NotStarted; | 550 m_status = NotStarted; |
| 551 } | 551 } |
| 552 | 552 |
| 553 void Resource::willFollowRedirect(ResourceRequest& newRequest, const ResourceRes
ponse& redirectResponse) | 553 void Resource::willFollowRedirect(ResourceRequest& newRequest, const ResourceRes
ponse& redirectResponse) |
| 554 { | 554 { |
| 555 if (!m_revalidatingRequest.isNull()) |
| 556 revalidationFailed(); |
| 557 |
| 555 newRequest.setAllowStoredCredentials(m_options.allowCredentials == AllowStor
edCredentials); | 558 newRequest.setAllowStoredCredentials(m_options.allowCredentials == AllowStor
edCredentials); |
| 556 m_redirectChain.append(RedirectPair(newRequest, redirectResponse)); | 559 m_redirectChain.append(RedirectPair(newRequest, redirectResponse)); |
| 557 } | 560 } |
| 558 | 561 |
| 559 void Resource::setResponse(const ResourceResponse& response) | 562 void Resource::setResponse(const ResourceResponse& response) |
| 560 { | 563 { |
| 561 m_response = response; | 564 m_response = response; |
| 562 if (m_response.wasFetchedViaServiceWorker()) | 565 if (m_response.wasFetchedViaServiceWorker()) |
| 563 m_cacheHandler = ServiceWorkerResponseCachedMetadataHandler::create(this
, m_fetcherSecurityOrigin.get()); | 566 m_cacheHandler = ServiceWorkerResponseCachedMetadataHandler::create(this
, m_fetcherSecurityOrigin.get()); |
| 564 } | 567 } |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 case Resource::Media: | 1130 case Resource::Media: |
| 1128 return "Media"; | 1131 return "Media"; |
| 1129 case Resource::Manifest: | 1132 case Resource::Manifest: |
| 1130 return "Manifest"; | 1133 return "Manifest"; |
| 1131 } | 1134 } |
| 1132 ASSERT_NOT_REACHED(); | 1135 ASSERT_NOT_REACHED(); |
| 1133 return "Unknown"; | 1136 return "Unknown"; |
| 1134 } | 1137 } |
| 1135 | 1138 |
| 1136 } // namespace blink | 1139 } // namespace blink |
| OLD | NEW |