Add CanSetCookie and CanGetCookie method stubs, look at implementing later

This commit is contained in:
amaitland
2015-08-19 08:53:09 +10:00
parent 65d44b3962
commit fb2f2efa11
2 changed files with 18 additions and 4 deletions
+12
View File
@@ -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
+6 -4
View File
@@ -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);
};