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_proxy.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_proxy.h')
-rw-r--r-- | src/core/url_request_custom_job_proxy.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/url_request_custom_job_proxy.h b/src/core/url_request_custom_job_proxy.h index df7171f5e..3ea30a4e1 100644 --- a/src/core/url_request_custom_job_proxy.h +++ b/src/core/url_request_custom_job_proxy.h @@ -63,6 +63,7 @@ public: QWeakPointer<const BrowserContextAdapter> adapter); ~URLRequestCustomJobProxy(); + // Called from URLRequestCustomJobDelegate via post: //void setReplyCharset(const std::string &); void reply(std::string mimeType, QIODevice *device); void redirect(GURL url); @@ -70,12 +71,13 @@ public: void fail(int error); void release(); void initialize(GURL url, std::string method); + void readyRead(); - //IO thread owned + // IO thread owned: URLRequestCustomJob *m_job; bool m_started; - //UI thread owned + // UI thread owned: std::string m_scheme; URLRequestCustomJobDelegate *m_delegate; QWeakPointer<const BrowserContextAdapter> m_adapter; |