Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: android_webview/native/android_protocol_handler.h

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
6 #define ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
7
8 #include <memory>
9
10 #include "base/android/jni_android.h"
11
12 namespace net {
13 class URLRequestInterceptor;
14 } // namespace net
15
16 namespace android_webview {
17
18 // These methods create interceptors for Android WebView-specific schemes:
19 //
20 // - "content:" scheme is used for accessing data from Android content
21 // providers, see http://developer.android.com/guide/topics/providers/
22 // content-provider-basics.html#ContentURIs
23 std::unique_ptr<net::URLRequestInterceptor>
24 CreateContentSchemeRequestInterceptor();
25
26 // - "file:" scheme extension for accessing application assets and resources
27 // (file:///android_asset/ and file:///android_res/), see
28 // http://developer.android.com/reference/android/webkit/
29 // WebSettings.html#setAllowFileAccess(boolean)
30 std::unique_ptr<net::URLRequestInterceptor> CreateAssetFileRequestInterceptor();
31
32 bool RegisterAndroidProtocolHandler(JNIEnv* env);
33
34 } // namespace android_webview
35
36 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698