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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 return; | 1251 return; |
1252 case Revalidate: | 1252 case Revalidate: |
1253 ++m_revalidateCount; | 1253 ++m_revalidateCount; |
1254 return; | 1254 return; |
1255 case Use: | 1255 case Use: |
1256 ++m_useCount; | 1256 ++m_useCount; |
1257 return; | 1257 return; |
1258 } | 1258 } |
1259 } | 1259 } |
1260 | 1260 |
| 1261 void ResourceFetcher::purgeMemory() |
| 1262 { |
| 1263 if (isFetching()) |
| 1264 stopFetching(); |
| 1265 m_documentResources.clear(); |
| 1266 m_validatedURLs.clear(); |
| 1267 clearPreloads(ClearAllPreloads); |
| 1268 } |
| 1269 |
1261 DEFINE_TRACE(ResourceFetcher) | 1270 DEFINE_TRACE(ResourceFetcher) |
1262 { | 1271 { |
1263 visitor->trace(m_context); | 1272 visitor->trace(m_context); |
1264 visitor->trace(m_archive); | 1273 visitor->trace(m_archive); |
1265 visitor->trace(m_loaders); | 1274 visitor->trace(m_loaders); |
1266 visitor->trace(m_nonBlockingLoaders); | 1275 visitor->trace(m_nonBlockingLoaders); |
1267 visitor->trace(m_documentResources); | 1276 visitor->trace(m_documentResources); |
1268 visitor->trace(m_preloads); | 1277 visitor->trace(m_preloads); |
1269 visitor->trace(m_resourceTimingInfoMap); | 1278 visitor->trace(m_resourceTimingInfoMap); |
1270 } | 1279 } |
1271 | 1280 |
1272 } // namespace blink | 1281 } // namespace blink |
OLD | NEW |