Add changesWatch for webview cookie
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine-cookie-manager.h
old mode 100644 (file)
new mode 100755 (executable)
index 3fd2de1..1df5a41
  */
 
 // EXTERNAL INCLUDES
+#include <string>
+#include <functional>
 
 namespace Dali
 {
 /**
- * @brief A class WebEngineCookieManager to wrap ewk cookie manager.
+ * @brief A class WebEngineCookieManager for cookie manager of web engine.
  */
 class WebEngineCookieManager
 {
@@ -48,6 +50,11 @@ public:
   };
 
   /**
+   * @brief Callback for changing watch.
+   */
+  using WebEngineCookieManagerChangesWatchCallback = std::function<void()>;
+
+  /**
    * @brief Constructor.
    */
   WebEngineCookieManager() = default;
@@ -90,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