[M120 Migration] Introduces network loading API
[platform/framework/web/chromium-efl.git] / third_party / blink / renderer / core / exported / web_view_impl.cc
index b476c64..3045cba 100644 (file)
@@ -4579,7 +4579,23 @@ void WebViewImpl::SetScrollOffset(float x, float y) {
   if (auto* focused_frame = FocusedFrame())
     focused_frame->SetScrollOffset(gfx::PointF(x, y));
 }
-#endif
+
+#if BUILDFLAG(IS_TIZEN_TV)
+void WebViewImpl::SuspendNetworkLoading() {
+  if (!GetPage())
+    return;
+
+  GetPage()->SetDefersLoading(true);
+}
+
+void WebViewImpl::ResumeNetworkLoading() {
+  if (!GetPage())
+    return;
+
+  GetPage()->SetDefersLoading(false);
+}
+#endif  // IS_TIZEN_TV
+#endif  // IS_EFL
 
 #if defined(TIZEN_VIDEO_HOLE)
 bool WebViewImpl::IsVideoHoleForRender() const {