diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-06-03 19:00:34 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-06-16 09:39:22 +0000 |
commit | 8a77cd16793bc91b0f7c267fc579a3041dd55e61 (patch) | |
tree | adeb282e7170f753719a6984252ff2b39aa9dc72 /src/core/api/qwebenginecallback_p.h | |
parent | 0e006b8ea755ebad01faf3e747e61abdf158289a (diff) |
Add QWebEngineCookieStoreClient core API
This class or its subclass can be set on the
QWebEngineProfile and its API enables intercepting
Chromium's cookies, setting and deleting cookies
in the cookie store.
These functions are asynchronous so if the result
of the task is needed the user can provide a
callback which will be run on the calling thread
when the requested operation finishes.
This does not include a hook for QQuick layer yet,
there we have to figure out what the most convenient
way is from a developer's perspective.
Change-Id: I6a3af071883ce632df7a2fb952da93f306ac3fe2
Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
Diffstat (limited to 'src/core/api/qwebenginecallback_p.h')
-rw-r--r-- | src/core/api/qwebenginecallback_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/api/qwebenginecallback_p.h b/src/core/api/qwebenginecallback_p.h index 9c798acbe..9eb627ad3 100644 --- a/src/core/api/qwebenginecallback_p.h +++ b/src/core/api/qwebenginecallback_p.h @@ -72,6 +72,14 @@ public: } } + enum ReservedCallbackIds { + NoCallbackId = 0, + DeleteCookieCallbackId, + + // Place reserved id's before this. + ReservedCallbackIdsEnd + }; + template<typename T> void registerCallback(quint64 callbackId, const QWebEngineCallback<T> &callback); |