| 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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 if (loader->cachedResource()->shouldBlockLoadEvent()) { | 997 if (loader->cachedResource()->shouldBlockLoadEvent()) { |
| 998 if (!m_loaders) | 998 if (!m_loaders) |
| 999 m_loaders = ResourceLoaderSet::create(); | 999 m_loaders = ResourceLoaderSet::create(); |
| 1000 m_loaders->add(loader); | 1000 m_loaders->add(loader); |
| 1001 } else { | 1001 } else { |
| 1002 if (!m_nonBlockingLoaders) | 1002 if (!m_nonBlockingLoaders) |
| 1003 m_nonBlockingLoaders = ResourceLoaderSet::create(); | 1003 m_nonBlockingLoaders = ResourceLoaderSet::create(); |
| 1004 m_nonBlockingLoaders->add(loader); | 1004 m_nonBlockingLoaders->add(loader); |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 context().willStartLoadingResource(request); | 1007 context().willStartLoadingResource(resource, request); |
| 1008 storeResourceTimingInitiatorInformation(resource); | 1008 storeResourceTimingInitiatorInformation(resource); |
| 1009 TRACE_EVENT_ASYNC_BEGIN2("blink.net", "Resource", resource, "url", resource-
>url().getString().ascii(), "priority", resource->resourceRequest().priority()); | |
| 1010 | 1009 |
| 1011 context().dispatchWillSendRequest(resource->identifier(), request, ResourceR
esponse(), resource->options().initiatorInfo); | 1010 context().dispatchWillSendRequest(resource->identifier(), request, ResourceR
esponse(), resource->options().initiatorInfo); |
| 1012 } | 1011 } |
| 1013 | 1012 |
| 1014 void ResourceFetcher::removeResourceLoader(ResourceLoader* loader) | 1013 void ResourceFetcher::removeResourceLoader(ResourceLoader* loader) |
| 1015 { | 1014 { |
| 1016 if (m_loaders && m_loaders->contains(loader)) | 1015 if (m_loaders && m_loaders->contains(loader)) |
| 1017 m_loaders->remove(loader); | 1016 m_loaders->remove(loader); |
| 1018 else if (m_nonBlockingLoaders && m_nonBlockingLoaders->contains(loader)) | 1017 else if (m_nonBlockingLoaders && m_nonBlockingLoaders->contains(loader)) |
| 1019 m_nonBlockingLoaders->remove(loader); | 1018 m_nonBlockingLoaders->remove(loader); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 visitor->trace(m_loaders); | 1218 visitor->trace(m_loaders); |
| 1220 visitor->trace(m_nonBlockingLoaders); | 1219 visitor->trace(m_nonBlockingLoaders); |
| 1221 #if ENABLE(OILPAN) | 1220 #if ENABLE(OILPAN) |
| 1222 visitor->trace(m_documentResources); | 1221 visitor->trace(m_documentResources); |
| 1223 visitor->trace(m_preloads); | 1222 visitor->trace(m_preloads); |
| 1224 visitor->trace(m_resourceTimingInfoMap); | 1223 visitor->trace(m_resourceTimingInfoMap); |
| 1225 #endif | 1224 #endif |
| 1226 } | 1225 } |
| 1227 | 1226 |
| 1228 } // namespace blink | 1227 } // namespace blink |
| OLD | NEW |