private final static int MSG_ON_DOWNLOAD_START = 3;
private final static int MSG_ON_RECEIVED_LOGIN_REQUEST = 4;
private final static int MSG_ON_RECEIVED_ERROR = 5;
+ private final static int MSG_ON_RESOURCE_LOAD_STARTED = 6;
private final XWalkContentsClient mContentsClient;
info.mFailingUrl);
break;
}
+ case MSG_ON_RESOURCE_LOAD_STARTED: {
+ final String url = (String) msg.obj;
+ mContentsClient.onResourceLoadStarted(url);
+ break;
+ }
default:
throw new IllegalStateException(
"XWalkContentsClientCallbackHelper: unhandled message " + msg.what);
OnReceivedErrorInfo info = new OnReceivedErrorInfo(errorCode, description, failingUrl);
mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_RECEIVED_ERROR, info));
}
+
+ public void postOnResourceLoadStarted(String url) {
+ mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_RESOURCE_LOAD_STARTED, url));
+ }
}