nim_duilib/ui_components/cef_control/app/client_app_browser.cpp

33 lines
893 B
C++
Raw Normal View History

2019-04-19 17:19:57 +08:00
#include "stdafx.h"
#include "client_app.h"
#include "include/cef_cookie.h"
#include "include/cef_process_message.h"
#include "include/cef_task.h"
#include "include/cef_v8.h"
#include "cef_control/util/util.h"
namespace nim_comp
2019-04-19 17:19:57 +08:00
{
//////////////////////////////////////////////////////////////////////////////////////////
// CefBrowserProcessHandler methods.
void ClientApp::OnContextInitialized()
{
// Register cookieable schemes with the global cookie manager.
CefRefPtr<CefCookieManager> manager = CefCookieManager::GetGlobalManager(NULL);
ASSERT(manager.get());
manager->SetSupportedSchemes(cookieable_schemes_, NULL);
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD>˱<EFBFBD><CBB1><EFBFBD><EFBFBD><EFBFBD>Cooies<65><73>Ϣ
// manager->DeleteCookies(L"", L"", nullptr);
}
void ClientApp::OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> command_line)
{
}
void ClientApp::OnRenderProcessThreadCreated(CefRefPtr<CefListValue> extra_info)
{
}
}