blob: d5a4df1a6c080bfa4b5e00a03b61707d186f8d24 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/android/jni_android.h"
#include "base/memory/scoped_ptr.h"
namespace net {
class URLRequestContext;
class URLRequestInterceptor;
} // namespace net
namespace android_webview {
// These methods create interceptors for Android WebView-specific schemes:
// - "content:" scheme is used for accessing data from Android content
// providers, see
// content-provider-basics.html#ContentURIs
scoped_ptr<net::URLRequestInterceptor> CreateContentSchemeRequestInterceptor();
// - "file:" scheme extension for accessing application assets and resources
// (file:///android_asset/ and file:///android_res/), see
// WebSettings.html#setAllowFileAccess(boolean)
scoped_ptr<net::URLRequestInterceptor> CreateAssetFileRequestInterceptor();
bool RegisterAndroidProtocolHandler(JNIEnv* env);
} // namespace android_webview