#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 manager = CefCookieManager::GetGlobalManager(NULL); ASSERT(manager.get()); manager->SetSupportedSchemes(cookieable_schemes_, NULL); // 这里可以删除了保存的Cooies信息 // manager->DeleteCookies(L"", L"", nullptr); } void ClientApp::OnBeforeChildProcessLaunch(CefRefPtr command_line) { } void ClientApp::OnRenderProcessThreadCreated(CefRefPtr extra_info) { } }