diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-24 15:47:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-25 11:02:41 +0000 |
commit | 684cfe05641ba9f3abc7e128d9dab5b331ef0689 (patch) | |
tree | ebaa3721e883360c5313a2ba5f1a9232d880ec6e /src/core/url_request_custom_job.h | |
parent | d96f8495b59878f50223a81a734ce0983539d8cf (diff) |
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 <michal.klocek@qt.io>
Diffstat (limited to 'src/core/url_request_custom_job.h')
-rw-r--r-- | src/core/url_request_custom_job.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<URLRequestCustomJobProxy> 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; |