mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Add CanSetCookie and CanGetCookie method stubs, look at implementing later
This commit is contained in:
@@ -70,6 +70,18 @@ namespace CefSharp
|
||||
return hasData;
|
||||
}
|
||||
|
||||
bool ResourceHandlerWrapper::CanGetCookie(const CefCookie& cookie)
|
||||
{
|
||||
//Default value is true
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ResourceHandlerWrapper::CanSetCookie(const CefCookie& cookie)
|
||||
{
|
||||
//Default value is true
|
||||
return true;
|
||||
}
|
||||
|
||||
void ResourceHandlerWrapper::Cancel()
|
||||
{
|
||||
//TODO: Fix this
|
||||
|
||||
@@ -49,10 +49,12 @@ namespace CefSharp
|
||||
delete _frame;
|
||||
}
|
||||
|
||||
virtual bool ProcessRequest(CefRefPtr<CefRequest> request, CefRefPtr<CefCallback> callback);
|
||||
virtual void GetResponseHeaders(CefRefPtr<CefResponse> response, int64& response_length, CefString& redirectUrl);
|
||||
virtual bool ReadResponse(void* data_out, int bytes_to_read, int& bytes_read, CefRefPtr<CefCallback> callback);
|
||||
virtual void Cancel();
|
||||
virtual bool ProcessRequest(CefRefPtr<CefRequest> request, CefRefPtr<CefCallback> callback) OVERRIDE;
|
||||
virtual void GetResponseHeaders(CefRefPtr<CefResponse> response, int64& response_length, CefString& redirectUrl) OVERRIDE;
|
||||
virtual bool ReadResponse(void* data_out, int bytes_to_read, int& bytes_read, CefRefPtr<CefCallback> callback) OVERRIDE;
|
||||
virtual bool CanGetCookie(const CefCookie& cookie) OVERRIDE;
|
||||
virtual bool CanSetCookie(const CefCookie& cookie) OVERRIDE;
|
||||
virtual void Cancel() OVERRIDE;
|
||||
|
||||
IMPLEMENT_REFCOUNTING(ResourceHandlerWrapper);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user