public interface CefCookieAccessFilter
限定符和类型 | 方法和说明 |
---|---|
boolean |
canSaveCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefCookie cookie)
Called on the IO thread after a resource response is received.
(收到资源响应后在IO线程上调用。)
|
boolean |
canSendCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefCookie cookie)
Called on the IO thread before a resource request is sent.
(发送资源请求之前在IO线程上调用。)
|
boolean canSaveCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefResponse response, CefCookie cookie)
browser
- The corresponding browser.
(-相应的浏览器。)
frame
- The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
request
- The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
(-请求本身。无法在此回调中修改。实例仅在此方法的范围内有效。)
response
- The request response. Cannot be modified in this callback. Instance only valid within the scope of this method.
(-请求响应。无法在此回调中修改。实例仅在此方法的范围内有效。)
cookie
- The cookie that will be sent with the request. Cannot be modified in this callback. Instance only valid within the scope of this method.
(-将与请求一起发送的cookie。无法在此回调中修改。实例仅在此方法的范围内有效。)
boolean canSendCookie(CefBrowser browser, CefFrame frame, CefRequest request, CefCookie cookie)
browser
- The corresponding browser.
(-相应的浏览器。)
frame
- The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
request
- The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
(-请求本身。无法在此回调中修改。实例仅在此方法的范围内有效。)
cookie
- The cookie that will be sent with the request. Cannot be modified in this callback. Instance only valid within the scope of this method.
(-将与请求一起发送的cookie。无法在此回调中修改。实例仅在此方法的范围内有效。)