I am on CEF3 2623.1401 (to work with XP).
I create CefURLRequest on render process, after that, I want to delete cookies at runtime. So I use SendProcessMessage to browser.
I handle the message in ClientHandler::OnProcessMessageReceived
- Code: Select all
CefRefPtr<CefListValue> args = message->GetArgumentList();
const CefString& domain = args->GetString(0);
CefRefPtr<CefCookieManager> manager =
CefCookieManager::GetGlobalManager(NULL);
//manager->DeleteCookies(domain, "", NULL);
CefPostTask(TID_IO, base::Bind(&CefCookieManager::DeleteCookies, manager, domain));
return true;
compile error:
- Code: Select all
1>D:\Develop\CEF3\cef_binary_3.2623.1401.gb90a3be_windows32\cefclient\browser\client_handler.cc(248): error C2665: 'CefPostTask' : none of the 2 overloads could convert all the argument types
1> D:\Develop\CEF3\cef_binary_3.2623.1401.gb90a3be_windows32\include/cef_task.h(137): could be 'bool CefPostTask(CefThreadId,CefRefPtr<T>)'
1> with
1> [
1> T=CefTask
1> ]
1> D:\Develop\CEF3\cef_binary_3.2623.1401.gb90a3be_windows32\include/wrapper/cef_closure_task.h(93): or 'bool CefPostTask(CefThreadId,const base::Closure &)'
1> while trying to match the argument list '(cef_thread_id_t, base::Callback<Sig>)'
1> with
1> [
1> Sig=bool (void)
1> ]
where am I wrong?
what's the right way for my case? from render
thanks.