File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5071,6 +5071,13 @@ WebKitWebsitePolicies* webkit_web_view_get_website_policies(WebKitWebView* webVi
50715071 return webView->priv ->websitePolicies .get ();
50725072}
50735073
5074+ void webkit_web_view_send_memory_pressure_event (WebKitWebView *webView, gboolean critical)
5075+ {
5076+ g_return_if_fail (WEBKIT_IS_WEB_VIEW (webView));
5077+
5078+ getPage (webView).sendMemoryPressureEvent (critical);
5079+ }
5080+
50745081void webkitWebViewSetIsWebProcessResponsive (WebKitWebView* webView, bool isResponsive)
50755082{
50765083 if (webView->priv ->isWebProcessResponsive == isResponsive)
Original file line number Diff line number Diff line change @@ -558,6 +558,10 @@ webkit_web_view_get_tls_info (WebKitWebView
558558WEBKIT_API WebKitUserContentManager *
559559webkit_web_view_get_user_content_manager (WebKitWebView * web_view );
560560
561+ WEBKIT_API void
562+ webkit_web_view_send_memory_pressure_event (WebKitWebView * web_view ,
563+ gboolean critical );
564+
561565WEBKIT_API gboolean
562566webkit_web_view_is_editable (WebKitWebView * web_view );
563567
Original file line number Diff line number Diff line change @@ -3098,6 +3098,12 @@ const NativeWebKeyboardEvent& WebPageProxy::firstQueuedKeyEvent() const
30983098 return m_keyEventQueue.first ();
30993099}
31003100
3101+ void WebPageProxy::sendMemoryPressureEvent (bool critical) const
3102+ {
3103+ for (auto & processPool : WebProcessPool::allProcessPools ())
3104+ processPool->sendMemoryPressureEvent (critical);
3105+ }
3106+
31013107bool WebPageProxy::handleKeyboardEvent (const NativeWebKeyboardEvent& event)
31023108{
31033109 if (!hasRunningProcess ())
Original file line number Diff line number Diff line change @@ -2140,6 +2140,8 @@ class WebPageProxy final : public API::ObjectImpl<API::Object::Type::Page>
21402140 void clearNotificationPermissionState ();
21412141#endif
21422142
2143+ void sendMemoryPressureEvent (bool critical) const ;
2144+
21432145private:
21442146 WebPageProxy (PageClient&, WebProcessProxy&, Ref<API::PageConfiguration>&&);
21452147 void platformInitialize ();
You can’t perform that action at this time.
0 commit comments