// Copyright (C) Microsoft Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include "stdafx.h" #include #include "AppWindow.h" #include "ComponentBase.h" class ScenarioCookieManagement : public ComponentBase { public: ScenarioCookieManagement(AppWindow* appWindow, bool isFromProfile = false); ~ScenarioCookieManagement() override; private: void GetCookiesHelper(std::wstring uri); void SetupEventsOnWebview(); AppWindow* m_appWindow; wil::com_ptr m_webViewEnvironment; wil::com_ptr m_webView; wil::com_ptr m_cookieManager; std::wstring m_sampleUri; EventRegistrationToken m_webMessageReceivedToken = {}; EventRegistrationToken m_contentLoadingToken = {}; };