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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 // Fall through | 580 // Fall through |
581 case Load: | 581 case Load: |
582 resource = createResourceForLoading(request, request.charset(), factory); | 582 resource = createResourceForLoading(request, request.charset(), factory); |
583 break; | 583 break; |
584 case Revalidate: | 584 case Revalidate: |
585 initializeRevalidation(request.mutableResourceRequest(), resource); | 585 initializeRevalidation(request.mutableResourceRequest(), resource); |
586 break; | 586 break; |
587 case Use: | 587 case Use: |
588 if (resource->isLinkPreload() && !request.isLinkPreload()) | 588 if (resource->isLinkPreload() && !request.isLinkPreload()) |
589 resource->setLinkPreload(false); | 589 resource->setLinkPreload(false); |
590 memoryCache()->updateForAccess(resource); | |
591 break; | 590 break; |
592 } | 591 } |
593 | 592 |
594 if (!resource) | 593 if (!resource) |
595 return nullptr; | 594 return nullptr; |
596 if (resource->getType() != factory.type()) { | 595 if (resource->getType() != factory.type()) { |
597 DCHECK(request.forPreload()); | 596 DCHECK(request.forPreload()); |
598 return nullptr; | 597 return nullptr; |
599 } | 598 } |
600 | 599 |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 visitor->trace(m_context); | 1611 visitor->trace(m_context); |
1613 visitor->trace(m_archive); | 1612 visitor->trace(m_archive); |
1614 visitor->trace(m_loaders); | 1613 visitor->trace(m_loaders); |
1615 visitor->trace(m_nonBlockingLoaders); | 1614 visitor->trace(m_nonBlockingLoaders); |
1616 visitor->trace(m_documentResources); | 1615 visitor->trace(m_documentResources); |
1617 visitor->trace(m_preloads); | 1616 visitor->trace(m_preloads); |
1618 visitor->trace(m_resourceTimingInfoMap); | 1617 visitor->trace(m_resourceTimingInfoMap); |
1619 } | 1618 } |
1620 | 1619 |
1621 } // namespace blink | 1620 } // namespace blink |
OLD | NEW |