Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Side by Side Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 690793003: Threaded data provider: Support main thread data notifications (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed status=experimental from the flag to make the test pass, until chrome side lands Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/fetch/ResourceFetcher.h ('k') | Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 void ResourceFetcher::didReceiveData(const Resource* resource, const char* data, int dataLength, int encodedDataLength) 1358 void ResourceFetcher::didReceiveData(const Resource* resource, const char* data, int dataLength, int encodedDataLength)
1359 { 1359 {
1360 context().dispatchDidReceiveData(m_documentLoader, resource->identifier(), d ata, dataLength, encodedDataLength); 1360 context().dispatchDidReceiveData(m_documentLoader, resource->identifier(), d ata, dataLength, encodedDataLength);
1361 } 1361 }
1362 1362
1363 void ResourceFetcher::didDownloadData(const Resource* resource, int dataLength, int encodedDataLength) 1363 void ResourceFetcher::didDownloadData(const Resource* resource, int dataLength, int encodedDataLength)
1364 { 1364 {
1365 context().dispatchDidDownloadData(m_documentLoader, resource->identifier(), dataLength, encodedDataLength); 1365 context().dispatchDidDownloadData(m_documentLoader, resource->identifier(), dataLength, encodedDataLength);
1366 } 1366 }
1367 1367
1368 void ResourceFetcher::acceptDataFromThreadedReceiver(unsigned long identifier, c onst char* data, int dataLength, int encodedDataLength)
1369 {
1370 context().dispatchDidReceiveData(m_documentLoader, identifier, data, dataLen gth, encodedDataLength);
1371 }
1372
1368 void ResourceFetcher::subresourceLoaderFinishedLoadingOnePart(ResourceLoader* lo ader) 1373 void ResourceFetcher::subresourceLoaderFinishedLoadingOnePart(ResourceLoader* lo ader)
1369 { 1374 {
1370 if (!m_nonBlockingLoaders) 1375 if (!m_nonBlockingLoaders)
1371 m_nonBlockingLoaders = ResourceLoaderSet::create(); 1376 m_nonBlockingLoaders = ResourceLoaderSet::create();
1372 m_nonBlockingLoaders->add(loader); 1377 m_nonBlockingLoaders->add(loader);
1373 m_loaders->remove(loader); 1378 m_loaders->remove(loader);
1374 if (LocalFrame* frame = this->frame()) 1379 if (LocalFrame* frame = this->frame())
1375 frame->loader().loadDone(); 1380 frame->loader().loadDone();
1376 } 1381 }
1377 1382
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 1581
1577 void ResourceFetcher::trace(Visitor* visitor) 1582 void ResourceFetcher::trace(Visitor* visitor)
1578 { 1583 {
1579 visitor->trace(m_document); 1584 visitor->trace(m_document);
1580 visitor->trace(m_loaders); 1585 visitor->trace(m_loaders);
1581 visitor->trace(m_nonBlockingLoaders); 1586 visitor->trace(m_nonBlockingLoaders);
1582 ResourceLoaderHost::trace(visitor); 1587 ResourceLoaderHost::trace(visitor);
1583 } 1588 }
1584 1589
1585 } 1590 }
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.h ('k') | Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698