| 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 rights reserved. | 6 rights reserved. |
| 7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 // Fall through | 577 // Fall through |
| 578 case Load: | 578 case Load: |
| 579 resource = createResourceForLoading(request, request.charset(), factory); | 579 resource = createResourceForLoading(request, request.charset(), factory); |
| 580 break; | 580 break; |
| 581 case Revalidate: | 581 case Revalidate: |
| 582 initializeRevalidation(request.mutableResourceRequest(), resource); | 582 initializeRevalidation(request.mutableResourceRequest(), resource); |
| 583 break; | 583 break; |
| 584 case Use: | 584 case Use: |
| 585 if (resource->isLinkPreload() && !request.isLinkPreload()) | 585 if (resource->isLinkPreload() && !request.isLinkPreload()) |
| 586 resource->setLinkPreload(false); | 586 resource->setLinkPreload(false); |
| 587 memoryCache()->updateForAccess(resource); | |
| 588 break; | 587 break; |
| 589 } | 588 } |
| 590 | 589 |
| 591 if (!resource) | 590 if (!resource) |
| 592 return nullptr; | 591 return nullptr; |
| 593 if (resource->getType() != factory.type()) { | 592 if (resource->getType() != factory.type()) { |
| 594 DCHECK(request.forPreload()); | 593 DCHECK(request.forPreload()); |
| 595 return nullptr; | 594 return nullptr; |
| 596 } | 595 } |
| 597 | 596 |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 visitor->trace(m_context); | 1618 visitor->trace(m_context); |
| 1620 visitor->trace(m_archive); | 1619 visitor->trace(m_archive); |
| 1621 visitor->trace(m_loaders); | 1620 visitor->trace(m_loaders); |
| 1622 visitor->trace(m_nonBlockingLoaders); | 1621 visitor->trace(m_nonBlockingLoaders); |
| 1623 visitor->trace(m_documentResources); | 1622 visitor->trace(m_documentResources); |
| 1624 visitor->trace(m_preloads); | 1623 visitor->trace(m_preloads); |
| 1625 visitor->trace(m_resourceTimingInfoMap); | 1624 visitor->trace(m_resourceTimingInfoMap); |
| 1626 } | 1625 } |
| 1627 | 1626 |
| 1628 } // namespace blink | 1627 } // namespace blink |
| OLD | NEW |