nim_duilib/ui_components/cef_control/app/client_app_browser.cpp
jiajia_deng 4933d1f2bc Remove dependency on shared
Signed-off-by: jiajia_deng <2894220@gmail.com>
2019-09-20 16:27:58 +08:00

33 lines
892 B
C++

#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_cef
{
//////////////////////////////////////////////////////////////////////////////////////////
// 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);
// 这里可以删除了保存的Cooies信息
// manager->DeleteCookies(L"", L"", nullptr);
}
void ClientApp::OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> command_line)
{
}
void ClientApp::OnRenderProcessThreadCreated(CefRefPtr<CefListValue> extra_info)
{
}
}