| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 &ResourceFetcher::resourceTimingReportTimerFired), | 261 &ResourceFetcher::resourceTimingReportTimerFired), |
| 262 m_autoLoadImages(true), | 262 m_autoLoadImages(true), |
| 263 m_imagesEnabled(true), | 263 m_imagesEnabled(true), |
| 264 m_allowStaleResources(false), | 264 m_allowStaleResources(false), |
| 265 m_imageFetched(false) {} | 265 m_imageFetched(false) {} |
| 266 | 266 |
| 267 ResourceFetcher::~ResourceFetcher() {} | 267 ResourceFetcher::~ResourceFetcher() {} |
| 268 | 268 |
| 269 Resource* ResourceFetcher::cachedResource(const KURL& resourceURL) const { | 269 Resource* ResourceFetcher::cachedResource(const KURL& resourceURL) const { |
| 270 KURL url = MemoryCache::removeFragmentIdentifierIfNeeded(resourceURL); | 270 KURL url = MemoryCache::removeFragmentIdentifierIfNeeded(resourceURL); |
| 271 const WeakMember<Resource>& resource = m_documentResources.get(url); | 271 const WeakMember<Resource>& resource = m_documentResources.at(url); |
| 272 return resource.get(); | 272 return resource.get(); |
| 273 } | 273 } |
| 274 | 274 |
| 275 bool ResourceFetcher::isControlledByServiceWorker() const { | 275 bool ResourceFetcher::isControlledByServiceWorker() const { |
| 276 return context().isControlledByServiceWorker(); | 276 return context().isControlledByServiceWorker(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 bool ResourceFetcher::resourceNeedsLoad(Resource* resource, | 279 bool ResourceFetcher::resourceNeedsLoad(Resource* resource, |
| 280 const FetchRequest& request, | 280 const FetchRequest& request, |
| 281 RevalidationPolicy policy) { | 281 RevalidationPolicy policy) { |
| (...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 visitor->trace(m_context); | 1540 visitor->trace(m_context); |
| 1541 visitor->trace(m_archive); | 1541 visitor->trace(m_archive); |
| 1542 visitor->trace(m_loaders); | 1542 visitor->trace(m_loaders); |
| 1543 visitor->trace(m_nonBlockingLoaders); | 1543 visitor->trace(m_nonBlockingLoaders); |
| 1544 visitor->trace(m_documentResources); | 1544 visitor->trace(m_documentResources); |
| 1545 visitor->trace(m_preloads); | 1545 visitor->trace(m_preloads); |
| 1546 visitor->trace(m_resourceTimingInfoMap); | 1546 visitor->trace(m_resourceTimingInfoMap); |
| 1547 } | 1547 } |
| 1548 | 1548 |
| 1549 } // namespace blink | 1549 } // namespace blink |
| OLD | NEW |