Changeset 95804 in webkit
- Timestamp:
- Sep 23, 2011 8:06:36 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r95773 r95804 1 2011-09-23 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 3 [Qt][WK2] QtFileDownloader ctor shouldn't call QtFileDownloader::onReadyRead() 4 https://bugs.webkit.org/show_bug.cgi?id=68696 5 6 Reviewed by Andreas Kling. 7 8 Instead of connecting signals and calling QtFileDownloader::onReadyRead() 9 on its constructor, QtFileDownloader will now handle this in start(). 10 11 * WebProcess/Downloads/qt/DownloadQt.cpp: 12 (WebKit::Download::start): 13 * WebProcess/Downloads/qt/QtFileDownloader.cpp: 14 (WebKit::QtFileDownloader::QtFileDownloader): 15 (WebKit::QtFileDownloader::start): 16 * WebProcess/Downloads/qt/QtFileDownloader.h: 17 1 18 2011-09-22 Gopal Raghavan <gopal.1.raghavan@nokia.com> 2 19 -
trunk/Source/WebKit2/WebProcess/Downloads/qt/DownloadQt.cpp
r95631 r95804 47 47 48 48 m_qtDownloader = new QtFileDownloader(this, adoptPtr(manager->get(m_request.toNetworkRequest()))); 49 m_qtDownloader->start(); 49 50 } 50 51 -
trunk/Source/WebKit2/WebProcess/Downloads/qt/QtFileDownloader.cpp
r95631 r95804 44 44 , m_headersRead(false) 45 45 { 46 } 47 48 QtFileDownloader::~QtFileDownloader() 49 { 50 if (!m_destinationFile) 51 return; 52 53 abortDownloadWritingAndEmitError(QtFileDownloader::DownloadErrorAborted); 54 } 55 56 void QtFileDownloader::start() 57 { 46 58 connect(m_reply.get(), SIGNAL(readyRead()), SLOT(onReadyRead())); 47 59 connect(m_reply.get(), SIGNAL(finished()), SLOT(onFinished())); … … 50 62 // Call onReadyRead just in case some data is already waiting. 51 63 onReadyRead(); 52 }53 54 QtFileDownloader::~QtFileDownloader()55 {56 if (!m_destinationFile)57 return;58 59 abortDownloadWritingAndEmitError(QtFileDownloader::DownloadErrorAborted);60 64 } 61 65 -
trunk/Source/WebKit2/WebProcess/Downloads/qt/QtFileDownloader.h
r95631 r95804 47 47 void decidedDestination(const QString& decidedFilePath, bool allowOverwrite); 48 48 void cancel(); 49 void start(); 49 50 50 51 enum DownloadError {
Note: See TracChangeset
for help on using the changeset viewer.