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