Add APIs for intercepting http request in web view.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / web-view / web-view.h
index 716132e..a64e1ca 100755 (executable)
@@ -243,6 +243,11 @@ public:
    */
   using WebViewFrameRenderedSignalType = Signal<void(WebView)>;
 
+  /**
+   * @brief WebView signal type related with http request interceptor.
+   */
+  using WebViewRequestInterceptorSignalType = Signal<void(WebView, std::shared_ptr<Dali::WebEngineRequestInterceptor>)>;
+
 public:
   /**
    * @brief Creates an initialized WebView.
@@ -700,6 +705,13 @@ public:
    */
   WebViewFrameRenderedSignalType& FrameRenderedSignal();
 
+  /**
+   * @brief Connects to this signal to be notified when http request need be intercepted.
+   *
+   * @return A signal object to connect with.
+   */
+  WebViewRequestInterceptorSignalType& RequestInterceptorSignal();
+
 public: // Not intended for application developers
   /// @cond internal
   /**