mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add cookie get/set support (issue #88).
- Move classes that extend structures to cef_types_wrappers.h and implement using the new CefStructBase template class. - Change the HandleProtocolExecution |allow_os_execution| argument to pass by reference to maintain consistency with other API functions. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@217 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "include/cef_capi.h"
|
||||
#include "include/cef_nplugin.h"
|
||||
#include "include/cef_nplugin_capi.h"
|
||||
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domevent_listener_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/download_handler_cpptoc.h"
|
||||
@@ -46,6 +47,7 @@ void CefShutdown()
|
||||
|
||||
#ifdef _DEBUG
|
||||
// Check that all wrapper objects have been destroyed
|
||||
DCHECK(CefCookieVisitorCppToC::DebugObjCt == 0);
|
||||
DCHECK(CefDOMEventListenerCppToC::DebugObjCt == 0);
|
||||
DCHECK(CefDOMVisitorCppToC::DebugObjCt == 0);
|
||||
DCHECK(CefDownloadHandlerCppToC::DebugObjCt == 0);
|
||||
@@ -139,3 +141,27 @@ bool CefCreateURL(const CefURLParts& parts,
|
||||
{
|
||||
return cef_create_url(&parts, url.GetWritableStruct()) ? true : false;
|
||||
}
|
||||
|
||||
bool CefVisitAllCookies(CefRefPtr<CefCookieVisitor> visitor)
|
||||
{
|
||||
return cef_visit_all_cookies(CefCookieVisitorCppToC::Wrap(visitor)) ?
|
||||
true : false;
|
||||
}
|
||||
|
||||
bool CefVisitUrlCookies(const CefString& url, bool includeHttpOnly,
|
||||
CefRefPtr<CefCookieVisitor> visitor)
|
||||
{
|
||||
return cef_visit_url_cookies(url.GetStruct(), includeHttpOnly,
|
||||
CefCookieVisitorCppToC::Wrap(visitor)) ? true : false;
|
||||
}
|
||||
|
||||
bool CefSetCookie(const CefString& url, const CefCookie& cookie)
|
||||
{
|
||||
return cef_set_cookie(url.GetStruct(), &cookie) ? true : false;
|
||||
}
|
||||
|
||||
bool CefDeleteCookies(const CefString& url, const CefString& cookie_name)
|
||||
{
|
||||
return cef_delete_cookies(url.GetStruct(), cookie_name.GetStruct()) ?
|
||||
true : false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user