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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 // Fall through | 583 // Fall through |
584 case Load: | 584 case Load: |
585 resource = createResourceForLoading(request, request.charset(), factory); | 585 resource = createResourceForLoading(request, request.charset(), factory); |
586 break; | 586 break; |
587 case Revalidate: | 587 case Revalidate: |
588 initializeRevalidation(request.mutableResourceRequest(), resource); | 588 initializeRevalidation(request.mutableResourceRequest(), resource); |
589 break; | 589 break; |
590 case Use: | 590 case Use: |
591 if (resource->isLinkPreload() && !request.isLinkPreload()) | 591 if (resource->isLinkPreload() && !request.isLinkPreload()) |
592 resource->setLinkPreload(false); | 592 resource->setLinkPreload(false); |
593 memoryCache()->updateForAccess(resource); | |
594 break; | 593 break; |
595 } | 594 } |
596 | 595 |
597 if (!resource) | 596 if (!resource) |
598 return nullptr; | 597 return nullptr; |
599 if (resource->getType() != factory.type()) { | 598 if (resource->getType() != factory.type()) { |
600 DCHECK(request.forPreload()); | 599 DCHECK(request.forPreload()); |
601 return nullptr; | 600 return nullptr; |
602 } | 601 } |
603 | 602 |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 visitor->trace(m_context); | 1640 visitor->trace(m_context); |
1642 visitor->trace(m_archive); | 1641 visitor->trace(m_archive); |
1643 visitor->trace(m_loaders); | 1642 visitor->trace(m_loaders); |
1644 visitor->trace(m_nonBlockingLoaders); | 1643 visitor->trace(m_nonBlockingLoaders); |
1645 visitor->trace(m_documentResources); | 1644 visitor->trace(m_documentResources); |
1646 visitor->trace(m_preloads); | 1645 visitor->trace(m_preloads); |
1647 visitor->trace(m_resourceTimingInfoMap); | 1646 visitor->trace(m_resourceTimingInfoMap); |
1648 } | 1647 } |
1649 | 1648 |
1650 } // namespace blink | 1649 } // namespace blink |
OLD | NEW |