diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2017-11-20 11:57:14 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2017-11-24 23:28:07 +0000 |
commit | 4d0add31fd0a69aca7c7c852f22531dd98922c62 (patch) | |
tree | beaa8b397dcd3f5abef77725d2df28ca6b76068f /tests/auto/corelib/io | |
parent | c3632d80369c2b03be29d5158f1af8fcbfc11d2d (diff) |
Add QNetworkRequest::ResourceTypeAttribute for use in QtWebKit
Often requested feature in QtWebKit is reporting what kind of resource
corresponds to particular QNetworkRequest, similarly to
QWebEngineUrlRequestInfo::resourceType(). This information can be used
to modify or block certain request types in user's implementation of
QNAM::createRequest().
The only clean way to pass this data is via attributes of QNetworkRequest,
so enum value needs to be reserved. It's unlikely to be used anywhere
outside of QtWebKit, however this is already the case for
SynchronousRequestAttribute.
Change-Id: I51a258e5e4b78e6e823c30c48d0c644356de6b17
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/corelib/io')
0 files changed, 0 insertions, 0 deletions