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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 void ResourceFetcher::willTerminateResourceLoader(ResourceLoader* loader) | 687 void ResourceFetcher::willTerminateResourceLoader(ResourceLoader* loader) |
688 { | 688 { |
689 if (m_loaders && m_loaders->contains(loader)) | 689 if (m_loaders && m_loaders->contains(loader)) |
690 m_loaders->remove(loader); | 690 m_loaders->remove(loader); |
691 if (m_multipartLoaders && m_multipartLoaders->contains(loader)) | 691 if (m_multipartLoaders && m_multipartLoaders->contains(loader)) |
692 m_multipartLoaders->remove(loader); | 692 m_multipartLoaders->remove(loader); |
693 } | 693 } |
694 | 694 |
695 void ResourceFetcher::willStartLoadingResource(Resource* resource, ResourceReque st& request) | 695 void ResourceFetcher::willStartLoadingResource(Resource* resource, ResourceReque st& request) |
696 { | 696 { |
697 TRACE_EVENT_ASYNC_BEGIN2("net", "Resource", resource, "url", resource->url() .string().ascii().data(), "priority", resource->resourceRequest().priority()); | 697 TRACE_EVENT_ASYNC_BEGIN2( |
698 "net", "Resource", resource, "url", | |
699 TRACE_STR_COPY(resource->url().string().ascii().data()), "priority", | |
jamesr
2015/04/29 00:12:46
same here
| |
700 resource->resourceRequest().priority()); | |
698 } | 701 } |
699 | 702 |
700 void ResourceFetcher::stopFetching() | 703 void ResourceFetcher::stopFetching() |
701 { | 704 { |
702 if (m_multipartLoaders) | 705 if (m_multipartLoaders) |
703 m_multipartLoaders->cancelAll(); | 706 m_multipartLoaders->cancelAll(); |
704 if (m_loaders) | 707 if (m_loaders) |
705 m_loaders->cancelAll(); | 708 m_loaders->cancelAll(); |
706 } | 709 } |
707 | 710 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
760 case Revalidate: | 763 case Revalidate: |
761 ++m_revalidateCount; | 764 ++m_revalidateCount; |
762 return; | 765 return; |
763 case Use: | 766 case Use: |
764 ++m_useCount; | 767 ++m_useCount; |
765 return; | 768 return; |
766 } | 769 } |
767 } | 770 } |
768 | 771 |
769 } | 772 } |
OLD | NEW |