From 684cfe05641ba9f3abc7e128d9dab5b331ef0689 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 24 Jul 2017 15:47:48 +0200 Subject: Support streaming QIODevices in custom URL scheme handlers We didn't handle the case where the QIODevice does not have all the data available all the time. Change-Id: I6aea8ed48ba9ed297efb907b8f6e5c5fc2a18abd Reviewed-by: Michal Klocek --- src/core/url_request_custom_job.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/url_request_custom_job.h') diff --git a/src/core/url_request_custom_job.h b/src/core/url_request_custom_job.h index 68a834d48..021cf3204 100644 --- a/src/core/url_request_custom_job.h +++ b/src/core/url_request_custom_job.h @@ -70,12 +70,16 @@ protected: virtual ~URLRequestCustomJob(); private: + void notifyReadyRead(); scoped_refptr m_proxy; std::string m_mimeType; std::string m_charset; GURL m_redirect; QIODevice *m_device; int m_error; + int m_pendingReadSize; + int m_pendingReadPos; + net::IOBuffer *m_pendingReadBuffer; friend class URLRequestCustomJobProxy; -- cgit v1.2.3