mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefCookieManager interface and CefRequestHandler::GetCookieManager for custom cookie handling (issue #542).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@534 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -40,6 +40,7 @@
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/cef_cookie.h"
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "include/cef_frame.h"
|
||||
#include "include/cef_content_filter.h"
|
||||
@ -154,6 +155,15 @@ class CefRequestHandler : public virtual CefBase {
|
||||
const CefString& scheme,
|
||||
CefString& username,
|
||||
CefString& password) { return false; }
|
||||
|
||||
///
|
||||
// Called on the UI thread to retrieve the cookie manager. Cookies managers
|
||||
// can be unique per browser or shared across multiple browsers. The global
|
||||
// cookie manager will be used if this method returns NULL.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefCookieManager> GetCookieManager(
|
||||
CefRefPtr<CefBrowser> browser) { return NULL; }
|
||||
};
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_REQUEST_HANDLER_H_
|
||||
|
Reference in New Issue
Block a user