Share via


interface ICoreWebView2ExperimentalProfile13

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2ExperimentalProfile13
  : public IUnknown

A continuation of the ICoreWebView2Profile interface to manage service and shared workers.

Summary

Members Descriptions
get_ServiceWorkerManager Get the service worker manager to monitor service worker registrations and interact with the service workers associated with the current profile.
get_SharedWorkerManager Get the shared worker manager to monitor shared worker creations and interact with the shared workers associated with the current profile.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease

Members

get_ServiceWorkerManager

Get the service worker manager to monitor service worker registrations and interact with the service workers associated with the current profile.

public HRESULT get_ServiceWorkerManager(ICoreWebView2ExperimentalServiceWorkerManager ** value)

    auto webView2_13 = m_webView.try_query<ICoreWebView2_13>();
    CHECK_FEATURE_RETURN_EMPTY(webView2_13);

    wil::com_ptr<ICoreWebView2Profile> webView2Profile;
    CHECK_FAILURE(webView2_13->get_Profile(&webView2Profile));
    auto webViewExperimentalProfile13 =
        webView2Profile.try_query<ICoreWebView2ExperimentalProfile13>();
    CHECK_FEATURE_RETURN_EMPTY(webViewExperimentalProfile13);
    CHECK_FAILURE(
        webViewExperimentalProfile13->get_ServiceWorkerManager(&m_serviceWorkerManager));

get_SharedWorkerManager

Get the shared worker manager to monitor shared worker creations and interact with the shared workers associated with the current profile.

public HRESULT get_SharedWorkerManager(ICoreWebView2ExperimentalSharedWorkerManager ** value)

    auto webView2_13 = m_webView.try_query<ICoreWebView2_13>();
    CHECK_FEATURE_RETURN_EMPTY(webView2_13);

    wil::com_ptr<ICoreWebView2Profile> webView2Profile;
    CHECK_FAILURE(webView2_13->get_Profile(&webView2Profile));
    auto webViewExperimentalProfile13 =
        webView2Profile.try_query<ICoreWebView2ExperimentalProfile13>();
    CHECK_FEATURE_RETURN_EMPTY(webViewExperimentalProfile13);
    CHECK_FAILURE(
        webViewExperimentalProfile13->get_SharedWorkerManager(&m_sharedWorkerManager));