| 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 744 |
| 745 if (!resource->hasClients()) | 745 if (!resource->hasClients()) |
| 746 m_deadStatsRecorder.update(policy); | 746 m_deadStatsRecorder.update(policy); |
| 747 | 747 |
| 748 if (policy != Use) | 748 if (policy != Use) |
| 749 resource->setIdentifier(createUniqueIdentifier()); | 749 resource->setIdentifier(createUniqueIdentifier()); |
| 750 | 750 |
| 751 if (!request.forPreload() || policy != Use) { | 751 if (!request.forPreload() || policy != Use) { |
| 752 ResourceLoadPriority priority = loadPriority(type, request); | 752 ResourceLoadPriority priority = loadPriority(type, request); |
| 753 if (priority != resource->resourceRequest().priority()) { | 753 if (priority != resource->resourceRequest().priority()) { |
| 754 resource->resourceRequest().setPriority(priority); | 754 resource->mutableResourceRequest().setPriority(priority); |
| 755 resource->didChangePriority(priority, 0); | 755 resource->didChangePriority(priority, 0); |
| 756 } | 756 } |
| 757 } | 757 } |
| 758 | 758 |
| 759 if (resourceNeedsLoad(resource.get(), request, policy)) { | 759 if (resourceNeedsLoad(resource.get(), request, policy)) { |
| 760 if (!shouldLoadNewResource(type)) { | 760 if (!shouldLoadNewResource(type)) { |
| 761 if (memoryCache()->contains(resource.get())) | 761 if (memoryCache()->contains(resource.get())) |
| 762 memoryCache()->remove(resource.get()); | 762 memoryCache()->remove(resource.get()); |
| 763 return 0; | 763 return 0; |
| 764 } | 764 } |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1537 } | 1537 } |
| 1538 } | 1538 } |
| 1539 | 1539 |
| 1540 void ResourceFetcher::trace(Visitor* visitor) | 1540 void ResourceFetcher::trace(Visitor* visitor) |
| 1541 { | 1541 { |
| 1542 visitor->trace(m_document); | 1542 visitor->trace(m_document); |
| 1543 ResourceLoaderHost::trace(visitor); | 1543 ResourceLoaderHost::trace(visitor); |
| 1544 } | 1544 } |
| 1545 | 1545 |
| 1546 } | 1546 } |
| OLD | NEW |