diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-16 02:29:52 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-16 02:29:52 +0300 |
commit | c808d849aa6aa17db95a7814e6eb6bc5162ba816 (patch) | |
tree | 28a220037e72f5b5b302afbdb22af672456e2f95 /indra/llui/lluictrl.h | |
parent | 9f540f10e687bb3889de191afbae3b52cc21f415 (diff) |
adjust the flag to be untrusted block/allow/throttle
Diffstat (limited to 'indra/llui/lluictrl.h')
-rw-r--r-- | indra/llui/lluictrl.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/llui/lluictrl.h b/indra/llui/lluictrl.h index 5039d3e22c..ca8b66cfca 100644 --- a/indra/llui/lluictrl.h +++ b/indra/llui/lluictrl.h @@ -285,13 +285,20 @@ public: struct LLCommitCallbackInfo { - LLCommitCallbackInfo(commit_callback_t func = NULL, bool allow_untrusted = false) - : callback_func(func), mAllowUntrusted(allow_untrusted) + enum EUntrustedCall + { + UNTRUSTED_ALLOW, + UNTRUSTED_BLOCK, + UNTRUSTED_THROTTLE + }; + + LLCommitCallbackInfo(commit_callback_t func = NULL, EUntrustedCall handle_untrusted = UNTRUSTED_ALLOW) + : callback_func(func), mHandleUntrusted(handle_untrusted) {} public: - bool mAllowUntrusted; - commit_callback_t callback_func; + EUntrustedCall mHandleUntrusted; + commit_callback_t callback_func; }; class SharedCommitCallbackRegistry : public CallbackRegistry<LLCommitCallbackInfo, SharedCommitCallbackRegistry> |