summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkrequest.h
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2017-11-20 11:57:14 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2017-11-24 23:28:07 +0000
commit4d0add31fd0a69aca7c7c852f22531dd98922c62 (patch)
treebeaa8b397dcd3f5abef77725d2df28ca6b76068f /src/network/access/qnetworkrequest.h
parentc3632d80369c2b03be29d5158f1af8fcbfc11d2d (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 'src/network/access/qnetworkrequest.h')
-rw-r--r--src/network/access/qnetworkrequest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qnetworkrequest.h b/src/network/access/qnetworkrequest.h
index cddd81bd19..e104c139d9 100644
--- a/src/network/access/qnetworkrequest.h
+++ b/src/network/access/qnetworkrequest.h
@@ -93,6 +93,7 @@ public:
OriginalContentLengthAttribute,
RedirectPolicyAttribute,
Http2DirectAttribute,
+ ResourceTypeAttribute, // internal
User = 1000,
UserMax = 32767