public interface CefSchemeHandlerFactory
限定符和类型 | 方法和说明 |
---|---|
CefResourceHandler |
create(CefBrowser browser, CefFrame frame, java.lang.String schemeName, CefRequest request)
Return a new resource handler instance to handle the request or NULL to allow default handling of the request.
(返回一个新的资源处理程序实例以处理请求,或者返回NULL以允许默认处理请求。)
|
CefResourceHandler create(CefBrowser browser, CefFrame frame, java.lang.String schemeName, CefRequest request)
browser
- The corresponding browser, or NULL if the request did not originate from a browser window (for example, if the request came from CefURLRequest).
(-相应的浏览器,如果请求不是来自浏览器窗口(例如,如果请求来自CefURLRequest),则为NULL。)
frame
- The frame generating the event, or NULL if the request did not originate from a browser window (for example, if the request came from CefURLRequest). Instance only valid within the scope of this method.
(-生成事件的框架,如果请求不是源自浏览器窗口(例如,如果请求来自CefURLRequest),则为NULL。实例仅在此方法的范围内有效。)
schemeName
- Name of the scheme being created.
(-正在创建的方案的名称。)
request
- The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
(-请求本身。无法在此回调中修改。实例仅在此方法的范围内有效。)