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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 } | 819 } |
820 return true; | 820 return true; |
821 } | 821 } |
822 | 822 |
823 size_t Resource::overheadSize() const | 823 size_t Resource::overheadSize() const |
824 { | 824 { |
825 static const int kAverageClientsHashMapSize = 384; | 825 static const int kAverageClientsHashMapSize = 384; |
826 return sizeof(Resource) + m_response.memoryUsage() + kAverageClientsHashMapS
ize + m_resourceRequest.url().string().length() * 2; | 826 return sizeof(Resource) + m_response.memoryUsage() + kAverageClientsHashMapS
ize + m_resourceRequest.url().string().length() * 2; |
827 } | 827 } |
828 | 828 |
829 void Resource::didChangePriority(ResourceLoadPriority loadPriority) | 829 void Resource::didChangePriority(ResourceLoadPriority loadPriority, int intraPri
orityValue) |
830 { | 830 { |
831 if (m_loader) | 831 if (m_loader) |
832 m_loader->didChangePriority(loadPriority); | 832 m_loader->didChangePriority(loadPriority, intraPriorityValue); |
833 } | 833 } |
834 | 834 |
835 Resource::ResourceCallback* Resource::ResourceCallback::callbackHandler() | 835 Resource::ResourceCallback* Resource::ResourceCallback::callbackHandler() |
836 { | 836 { |
837 DEFINE_STATIC_LOCAL(ResourceCallback, callbackHandler, ()); | 837 DEFINE_STATIC_LOCAL(ResourceCallback, callbackHandler, ()); |
838 return &callbackHandler; | 838 return &callbackHandler; |
839 } | 839 } |
840 | 840 |
841 Resource::ResourceCallback::ResourceCallback() | 841 Resource::ResourceCallback::ResourceCallback() |
842 : m_callbackTimer(this, &ResourceCallback::timerFired) | 842 : m_callbackTimer(this, &ResourceCallback::timerFired) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 return "Shader"; | 961 return "Shader"; |
962 case Resource::ImportResource: | 962 case Resource::ImportResource: |
963 return "ImportResource"; | 963 return "ImportResource"; |
964 } | 964 } |
965 ASSERT_NOT_REACHED(); | 965 ASSERT_NOT_REACHED(); |
966 return "Unknown"; | 966 return "Unknown"; |
967 } | 967 } |
968 #endif // !LOG_DISABLED | 968 #endif // !LOG_DISABLED |
969 | 969 |
970 } | 970 } |
OLD | NEW |