forked from CinemaMod/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCefSchemeHandlerFactory.java
More file actions
32 lines (29 loc) · 1.45 KB
/
CefSchemeHandlerFactory.java
File metadata and controls
32 lines (29 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.callback;
import org.cef.browser.CefBrowser;
import org.cef.browser.CefFrame;
import org.cef.handler.CefResourceHandler;
import org.cef.network.CefRequest;
/**
* Class that creates CefResourceHandler instances for handling scheme requests.
* The methods of this class will always be called on the IO thread.
*/
public interface CefSchemeHandlerFactory {
/**
* Return a new resource handler instance to handle the request or NULL to allow default
* handling of the request.
*
* @param browser The corresponding browser, or NULL if the request did not originate from a
* browser window (for example, if the request came from CefURLRequest).
* @param 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.
* @param schemeName Name of the scheme being created.
* @param request The request itself. Cannot be modified in this callback. Instance only valid
* within the scope of this method.
*/
public CefResourceHandler create(
CefBrowser browser, CefFrame frame, String schemeName, CefRequest request);
}