Add changesWatch for webview cookie 49/255349/5
authorzhouleonlei <zhouleon.lei@samsung.com>
Wed, 17 Mar 2021 08:06:52 +0000 (16:06 +0800)
committerzhouleonlei <zhouleon.lei@samsung.com>
Fri, 16 Apr 2021 05:10:07 +0000 (13:10 +0800)
Change-Id: I92dac00111a04138d3511e6ca74a4feab0263cca

dali/devel-api/adaptor-framework/web-engine-cookie-manager.h

index ac3367f..1df5a41 100755 (executable)
@@ -20,6 +20,7 @@
 
 // EXTERNAL INCLUDES
 #include <string>
+#include <functional>
 
 namespace Dali
 {
@@ -49,6 +50,11 @@ public:
   };
 
   /**
+   * @brief Callback for changing watch.
+   */
+  using WebEngineCookieManagerChangesWatchCallback = std::function<void()>;
+
+  /**
    * @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