| 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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 void ResourceFetcher::refResourceLoaderHost() | 1291 void ResourceFetcher::refResourceLoaderHost() |
| 1292 { | 1292 { |
| 1293 ref(); | 1293 ref(); |
| 1294 } | 1294 } |
| 1295 | 1295 |
| 1296 void ResourceFetcher::derefResourceLoaderHost() | 1296 void ResourceFetcher::derefResourceLoaderHost() |
| 1297 { | 1297 { |
| 1298 deref(); | 1298 deref(); |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 void ResourceFetcher::didRequestStartForFrame() |
| 1302 { |
| 1303 m_documentLoader->frameLoader()->didStartForFrame(m_documentLoader); |
| 1304 } |
| 1305 |
| 1301 #if PRELOAD_DEBUG | 1306 #if PRELOAD_DEBUG |
| 1302 void ResourceFetcher::printPreloadStats() | 1307 void ResourceFetcher::printPreloadStats() |
| 1303 { | 1308 { |
| 1304 unsigned scripts = 0; | 1309 unsigned scripts = 0; |
| 1305 unsigned scriptMisses = 0; | 1310 unsigned scriptMisses = 0; |
| 1306 unsigned stylesheets = 0; | 1311 unsigned stylesheets = 0; |
| 1307 unsigned stylesheetMisses = 0; | 1312 unsigned stylesheetMisses = 0; |
| 1308 unsigned images = 0; | 1313 unsigned images = 0; |
| 1309 unsigned imageMisses = 0; | 1314 unsigned imageMisses = 0; |
| 1310 ListHashSet<Resource*>::iterator end = m_preloads.end(); | 1315 ListHashSet<Resource*>::iterator end = m_preloads.end(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 } | 1352 } |
| 1348 #endif | 1353 #endif |
| 1349 | 1354 |
| 1350 const ResourceLoaderOptions& ResourceFetcher::defaultResourceOptions() | 1355 const ResourceLoaderOptions& ResourceFetcher::defaultResourceOptions() |
| 1351 { | 1356 { |
| 1352 DEFINE_STATIC_LOCAL(ResourceLoaderOptions, options, (SniffContent, BufferDat
a, AllowStoredCredentials, ClientRequestedCredentials, AskClientForCrossOriginCr
edentials, DoSecurityCheck, CheckContentSecurityPolicy, DocumentContext)); | 1357 DEFINE_STATIC_LOCAL(ResourceLoaderOptions, options, (SniffContent, BufferDat
a, AllowStoredCredentials, ClientRequestedCredentials, AskClientForCrossOriginCr
edentials, DoSecurityCheck, CheckContentSecurityPolicy, DocumentContext)); |
| 1353 return options; | 1358 return options; |
| 1354 } | 1359 } |
| 1355 | 1360 |
| 1356 } | 1361 } |
| OLD | NEW |