1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.xwalk.core;
7 import org.chromium.base.CalledByNative;
8 import org.chromium.base.JNINamespace;
11 * Delegate for handling callbacks. All methods are called on the IO thread.
13 @JNINamespace("xwalk")
14 interface XWalkContentsIoThreadClient {
16 public int getCacheMode();
19 public InterceptedRequestData shouldInterceptRequest(String url, boolean isMainFrame);
22 public boolean shouldBlockContentUrls();
25 public boolean shouldBlockFileUrls();
28 public boolean shouldBlockNetworkLoads();
31 public void onDownloadStart(String url,
33 String contentDisposition,
38 public void newLoginRequest(String realm, String account, String args);