| 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) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 { | 862 { |
| 863 return m_wasPurged; | 863 return m_wasPurged; |
| 864 } | 864 } |
| 865 | 865 |
| 866 size_t Resource::overheadSize() const | 866 size_t Resource::overheadSize() const |
| 867 { | 867 { |
| 868 static const int kAverageClientsHashMapSize = 384; | 868 static const int kAverageClientsHashMapSize = 384; |
| 869 return sizeof(Resource) + m_response.memoryUsage() + kAverageClientsHashMapS
ize + m_resourceRequest.url().string().length() * 2; | 869 return sizeof(Resource) + m_response.memoryUsage() + kAverageClientsHashMapS
ize + m_resourceRequest.url().string().length() * 2; |
| 870 } | 870 } |
| 871 | 871 |
| 872 void Resource::didChangePriority(ResourceLoadPriority loadPriority) | 872 void Resource::didChangePriority(ResourceLoadPriority loadPriority, int intraPri
orityValue) |
| 873 { | 873 { |
| 874 if (m_loader) | 874 if (m_loader) |
| 875 m_loader->didChangePriority(loadPriority); | 875 m_loader->didChangePriority(loadPriority, intraPriorityValue); |
| 876 } | 876 } |
| 877 | 877 |
| 878 Resource::ResourceCallback* Resource::ResourceCallback::callbackHandler() | 878 Resource::ResourceCallback* Resource::ResourceCallback::callbackHandler() |
| 879 { | 879 { |
| 880 DEFINE_STATIC_LOCAL(ResourceCallback, callbackHandler, ()); | 880 DEFINE_STATIC_LOCAL(ResourceCallback, callbackHandler, ()); |
| 881 return &callbackHandler; | 881 return &callbackHandler; |
| 882 } | 882 } |
| 883 | 883 |
| 884 Resource::ResourceCallback::ResourceCallback() | 884 Resource::ResourceCallback::ResourceCallback() |
| 885 : m_callbackTimer(this, &ResourceCallback::timerFired) | 885 : m_callbackTimer(this, &ResourceCallback::timerFired) |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 return "Shader"; | 999 return "Shader"; |
| 1000 case Resource::ImportResource: | 1000 case Resource::ImportResource: |
| 1001 return "ImportResource"; | 1001 return "ImportResource"; |
| 1002 } | 1002 } |
| 1003 ASSERT_NOT_REACHED(); | 1003 ASSERT_NOT_REACHED(); |
| 1004 return "Unknown"; | 1004 return "Unknown"; |
| 1005 } | 1005 } |
| 1006 #endif // !LOG_DISABLED | 1006 #endif // !LOG_DISABLED |
| 1007 | 1007 |
| 1008 } | 1008 } |
| OLD | NEW |