| 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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 void ResourceFetcher::didReceiveData(const Resource* resource, const char* data,
int dataLength, int encodedDataLength) | 1359 void ResourceFetcher::didReceiveData(const Resource* resource, const char* data,
int dataLength, int encodedDataLength) |
| 1360 { | 1360 { |
| 1361 context().dispatchDidReceiveData(m_documentLoader, resource->identifier(), d
ata, dataLength, encodedDataLength); | 1361 context().dispatchDidReceiveData(m_documentLoader, resource->identifier(), d
ata, dataLength, encodedDataLength); |
| 1362 } | 1362 } |
| 1363 | 1363 |
| 1364 void ResourceFetcher::didDownloadData(const Resource* resource, int dataLength,
int encodedDataLength) | 1364 void ResourceFetcher::didDownloadData(const Resource* resource, int dataLength,
int encodedDataLength) |
| 1365 { | 1365 { |
| 1366 context().dispatchDidDownloadData(m_documentLoader, resource->identifier(),
dataLength, encodedDataLength); | 1366 context().dispatchDidDownloadData(m_documentLoader, resource->identifier(),
dataLength, encodedDataLength); |
| 1367 } | 1367 } |
| 1368 | 1368 |
| 1369 void ResourceFetcher::acceptDataFromThreadedReceiver(unsigned long identifier, c
onst char* data, int dataLength, int encodedDataLength) |
| 1370 { |
| 1371 context().dispatchDidReceiveData(m_documentLoader, identifier, data, dataLen
gth, encodedDataLength); |
| 1372 } |
| 1373 |
| 1369 void ResourceFetcher::subresourceLoaderFinishedLoadingOnePart(ResourceLoader* lo
ader) | 1374 void ResourceFetcher::subresourceLoaderFinishedLoadingOnePart(ResourceLoader* lo
ader) |
| 1370 { | 1375 { |
| 1371 if (!m_multipartLoaders) | 1376 if (!m_multipartLoaders) |
| 1372 m_multipartLoaders = ResourceLoaderSet::create(); | 1377 m_multipartLoaders = ResourceLoaderSet::create(); |
| 1373 m_multipartLoaders->add(loader); | 1378 m_multipartLoaders->add(loader); |
| 1374 m_loaders->remove(loader); | 1379 m_loaders->remove(loader); |
| 1375 if (LocalFrame* frame = this->frame()) | 1380 if (LocalFrame* frame = this->frame()) |
| 1376 return frame->loader().checkLoadComplete(); | 1381 return frame->loader().checkLoadComplete(); |
| 1377 } | 1382 } |
| 1378 | 1383 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 | 1567 |
| 1563 void ResourceFetcher::trace(Visitor* visitor) | 1568 void ResourceFetcher::trace(Visitor* visitor) |
| 1564 { | 1569 { |
| 1565 visitor->trace(m_document); | 1570 visitor->trace(m_document); |
| 1566 visitor->trace(m_loaders); | 1571 visitor->trace(m_loaders); |
| 1567 visitor->trace(m_multipartLoaders); | 1572 visitor->trace(m_multipartLoaders); |
| 1568 ResourceLoaderHost::trace(visitor); | 1573 ResourceLoaderHost::trace(visitor); |
| 1569 } | 1574 } |
| 1570 | 1575 |
| 1571 } | 1576 } |
| OLD | NEW |