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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 for (ListHashSet<Resource*>::iterator it = m_preloads->begin(); it != end; +
+it) { | 1169 for (ListHashSet<Resource*>::iterator it = m_preloads->begin(); it != end; +
+it) { |
1170 Resource* res = *it; | 1170 Resource* res = *it; |
1171 res->decreasePreloadCount(); | 1171 res->decreasePreloadCount(); |
1172 bool deleted = res->deleteIfPossible(); | 1172 bool deleted = res->deleteIfPossible(); |
1173 if (!deleted && res->preloadResult() == Resource::PreloadNotReferenced) | 1173 if (!deleted && res->preloadResult() == Resource::PreloadNotReferenced) |
1174 memoryCache()->remove(res); | 1174 memoryCache()->remove(res); |
1175 } | 1175 } |
1176 m_preloads.clear(); | 1176 m_preloads.clear(); |
1177 } | 1177 } |
1178 | 1178 |
1179 void ResourceFetcher::didFinishLoading(const Resource* resource, double finishTi
me) | 1179 void ResourceFetcher::didFinishLoading(const Resource* resource, double finishTi
me, int64_t encodedDataLength) |
1180 { | 1180 { |
1181 TRACE_EVENT_ASYNC_END0("net", "Resource", resource); | 1181 TRACE_EVENT_ASYNC_END0("net", "Resource", resource); |
1182 context().dispatchDidFinishLoading(m_documentLoader, resource->identifier(),
finishTime); | 1182 context().dispatchDidFinishLoading(m_documentLoader, resource->identifier(),
finishTime, encodedDataLength); |
1183 } | 1183 } |
1184 | 1184 |
1185 void ResourceFetcher::didChangeLoadingPriority(const Resource* resource, Resourc
eLoadPriority loadPriority) | 1185 void ResourceFetcher::didChangeLoadingPriority(const Resource* resource, Resourc
eLoadPriority loadPriority) |
1186 { | 1186 { |
1187 TRACE_EVENT_ASYNC_STEP_INTO1("net", "Resource", resource, "ChangePriority",
"priority", loadPriority); | 1187 TRACE_EVENT_ASYNC_STEP_INTO1("net", "Resource", resource, "ChangePriority",
"priority", loadPriority); |
1188 context().dispatchDidChangeResourcePriority(resource->identifier(), loadPrio
rity); | 1188 context().dispatchDidChangeResourcePriority(resource->identifier(), loadPrio
rity); |
1189 } | 1189 } |
1190 | 1190 |
1191 void ResourceFetcher::didFailLoading(const Resource* resource, const ResourceErr
or& error) | 1191 void ResourceFetcher::didFailLoading(const Resource* resource, const ResourceErr
or& error) |
1192 { | 1192 { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 case Revalidate: | 1401 case Revalidate: |
1402 ++m_revalidateCount; | 1402 ++m_revalidateCount; |
1403 return; | 1403 return; |
1404 case Use: | 1404 case Use: |
1405 ++m_useCount; | 1405 ++m_useCount; |
1406 return; | 1406 return; |
1407 } | 1407 } |
1408 } | 1408 } |
1409 | 1409 |
1410 } | 1410 } |
OLD | NEW |