| 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
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // already initialized for the revalidation here, but won't start loading. | 518 // already initialized for the revalidation here, but won't start loading. |
| 519 if (!resourceNeedsLoad(resource, request, policy)) | 519 if (!resourceNeedsLoad(resource, request, policy)) |
| 520 return resource; | 520 return resource; |
| 521 | 521 |
| 522 if (!startLoad(resource)) | 522 if (!startLoad(resource)) |
| 523 return nullptr; | 523 return nullptr; |
| 524 ASSERT(!resource->errorOccurred() || request.options().synchronousPolicy ==
RequestSynchronously); | 524 ASSERT(!resource->errorOccurred() || request.options().synchronousPolicy ==
RequestSynchronously); |
| 525 return resource; | 525 return resource; |
| 526 } | 526 } |
| 527 | 527 |
| 528 void ResourceFetcher::resourceTimingReportTimerFired(Timer<ResourceFetcher>* tim
er) | 528 void ResourceFetcher::resourceTimingReportTimerFired(TimerBase* timer) |
| 529 { | 529 { |
| 530 ASSERT_UNUSED(timer, timer == &m_resourceTimingReportTimer); | 530 ASSERT_UNUSED(timer, timer == &m_resourceTimingReportTimer); |
| 531 Vector<std::unique_ptr<ResourceTimingInfo>> timingReports; | 531 Vector<std::unique_ptr<ResourceTimingInfo>> timingReports; |
| 532 timingReports.swap(m_scheduledResourceTimingReports); | 532 timingReports.swap(m_scheduledResourceTimingReports); |
| 533 for (const auto& timingInfo : timingReports) | 533 for (const auto& timingInfo : timingReports) |
| 534 context().addResourceTiming(*timingInfo); | 534 context().addResourceTiming(*timingInfo); |
| 535 } | 535 } |
| 536 | 536 |
| 537 void ResourceFetcher::determineRequestContext(ResourceRequest& request, Resource
::Type type, bool isMainFrame) | 537 void ResourceFetcher::determineRequestContext(ResourceRequest& request, Resource
::Type type, bool isMainFrame) |
| 538 { | 538 { |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 visitor->trace(m_context); | 1273 visitor->trace(m_context); |
| 1274 visitor->trace(m_archive); | 1274 visitor->trace(m_archive); |
| 1275 visitor->trace(m_loaders); | 1275 visitor->trace(m_loaders); |
| 1276 visitor->trace(m_nonBlockingLoaders); | 1276 visitor->trace(m_nonBlockingLoaders); |
| 1277 visitor->trace(m_documentResources); | 1277 visitor->trace(m_documentResources); |
| 1278 visitor->trace(m_preloads); | 1278 visitor->trace(m_preloads); |
| 1279 visitor->trace(m_resourceTimingInfoMap); | 1279 visitor->trace(m_resourceTimingInfoMap); |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 } // namespace blink | 1282 } // namespace blink |
| OLD | NEW |