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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 memoryCache()->remove(resource.get()); | 886 memoryCache()->remove(resource.get()); |
887 } | 887 } |
888 m_preloads.clear(); | 888 m_preloads.clear(); |
889 } | 889 } |
890 | 890 |
891 ArchiveResource* ResourceFetcher::createArchive(Resource* resource) | 891 ArchiveResource* ResourceFetcher::createArchive(Resource* resource) |
892 { | 892 { |
893 // Only the top-frame can load MHTML. | 893 // Only the top-frame can load MHTML. |
894 if (!context().isMainFrame()) | 894 if (!context().isMainFrame()) |
895 return nullptr; | 895 return nullptr; |
896 m_archive = MHTMLArchive::create(resource->url(), resource->resourceBuffer()
); | 896 m_archive = MHTMLArchive::create(resource->url(), resource->resourceBuffer()
.get()); |
897 return m_archive ? m_archive->mainResource() : nullptr; | 897 return m_archive ? m_archive->mainResource() : nullptr; |
898 } | 898 } |
899 | 899 |
900 void ResourceFetcher::didFinishLoading(Resource* resource, double finishTime, in
t64_t encodedDataLength, DidFinishLoadingReason finishReason) | 900 void ResourceFetcher::didFinishLoading(Resource* resource, double finishTime, in
t64_t encodedDataLength, DidFinishLoadingReason finishReason) |
901 { | 901 { |
902 TRACE_EVENT_ASYNC_END0("blink.net", "Resource", resource); | 902 TRACE_EVENT_ASYNC_END0("blink.net", "Resource", resource); |
903 DCHECK(resource); | 903 DCHECK(resource); |
904 | 904 |
905 // When loading a multipart resource, make the loader non-block when | 905 // When loading a multipart resource, make the loader non-block when |
906 // finishing loading the first part. | 906 // finishing loading the first part. |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1260 visitor->trace(m_context); | 1260 visitor->trace(m_context); |
1261 visitor->trace(m_archive); | 1261 visitor->trace(m_archive); |
1262 visitor->trace(m_loaders); | 1262 visitor->trace(m_loaders); |
1263 visitor->trace(m_nonBlockingLoaders); | 1263 visitor->trace(m_nonBlockingLoaders); |
1264 visitor->trace(m_documentResources); | 1264 visitor->trace(m_documentResources); |
1265 visitor->trace(m_preloads); | 1265 visitor->trace(m_preloads); |
1266 visitor->trace(m_resourceTimingInfoMap); | 1266 visitor->trace(m_resourceTimingInfoMap); |
1267 } | 1267 } |
1268 | 1268 |
1269 } // namespace blink | 1269 } // namespace blink |
OLD | NEW |