From: zhouleonlei Date: Wed, 17 Mar 2021 08:06:52 +0000 (+0800) Subject: Add changesWatch for webview cookie X-Git-Tag: dali_2.0.23~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F255349%2F5;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Add changesWatch for webview cookie Change-Id: I92dac00111a04138d3511e6ca74a4feab0263cca --- diff --git a/dali/devel-api/adaptor-framework/web-engine-cookie-manager.h b/dali/devel-api/adaptor-framework/web-engine-cookie-manager.h index ac3367f..1df5a41 100755 --- a/dali/devel-api/adaptor-framework/web-engine-cookie-manager.h +++ b/dali/devel-api/adaptor-framework/web-engine-cookie-manager.h @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include +#include namespace Dali { @@ -49,6 +50,11 @@ public: }; /** + * @brief Callback for changing watch. + */ + using WebEngineCookieManagerChangesWatchCallback = std::function; + + /** * @brief Constructor. */ WebEngineCookieManager() = default; @@ -91,6 +97,13 @@ public: * @param[in] storage The type of storage */ virtual void SetPersistentStorage(const std::string& path, CookiePersistentStorage storage) = 0; + + /** + * @brief Watch for cookies' changes in @a manager. + * + * @param[in] callback function that will be called every time cookies are added, removed or modified. + */ + virtual void ChangesWatch(WebEngineCookieManagerChangesWatchCallback callback) = 0; }; } // namespace Dali