| 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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 void ResourceFetcher::willTerminateResourceLoader(ResourceLoader* loader) | 815 void ResourceFetcher::willTerminateResourceLoader(ResourceLoader* loader) |
| 816 { | 816 { |
| 817 if (m_loaders && m_loaders->contains(loader)) | 817 if (m_loaders && m_loaders->contains(loader)) |
| 818 m_loaders->remove(loader); | 818 m_loaders->remove(loader); |
| 819 if (m_multipartLoaders && m_multipartLoaders->contains(loader)) | 819 if (m_multipartLoaders && m_multipartLoaders->contains(loader)) |
| 820 m_multipartLoaders->remove(loader); | 820 m_multipartLoaders->remove(loader); |
| 821 } | 821 } |
| 822 | 822 |
| 823 void ResourceFetcher::willStartLoadingResource(Resource* resource, ResourceReque
st& request) | 823 void ResourceFetcher::willStartLoadingResource(Resource* resource, ResourceReque
st& request) |
| 824 { | 824 { |
| 825 TRACE_EVENT_ASYNC_BEGIN2("net", "Resource", resource, "url", resource->url()
.string().ascii(), "priority", resource->resourceRequest().priority()); | 825 TRACE_EVENT_ASYNC_BEGIN2("net", "Resource", resource, "url", resource->url()
.string().ascii().data(), "priority", resource->resourceRequest().priority()); |
| 826 } | 826 } |
| 827 | 827 |
| 828 void ResourceFetcher::stopFetching() | 828 void ResourceFetcher::stopFetching() |
| 829 { | 829 { |
| 830 if (m_multipartLoaders) | 830 if (m_multipartLoaders) |
| 831 m_multipartLoaders->cancelAll(); | 831 m_multipartLoaders->cancelAll(); |
| 832 if (m_loaders) | 832 if (m_loaders) |
| 833 m_loaders->cancelAll(); | 833 m_loaders->cancelAll(); |
| 834 } | 834 } |
| 835 | 835 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 case Revalidate: | 930 case Revalidate: |
| 931 ++m_revalidateCount; | 931 ++m_revalidateCount; |
| 932 return; | 932 return; |
| 933 case Use: | 933 case Use: |
| 934 ++m_useCount; | 934 ++m_useCount; |
| 935 return; | 935 return; |
| 936 } | 936 } |
| 937 } | 937 } |
| 938 | 938 |
| 939 } | 939 } |
| OLD | NEW |