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

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

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address mmenke's first round of comments Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
6 #define ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_ 6 #define ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/memory/scoped_ptr.h"
9 10
10 namespace net { 11 namespace net {
11 class URLRequestContext; 12 class URLRequestContext;
12 class URLRequestJobFactory; 13 class URLRequestJobFactory;
13 } // namespace net 14 } // namespace net
14 15
15 namespace android_webview { 16 namespace android_webview {
16 17
17 // This class adds support for Android WebView-specific protocol schemes: 18 // This class adds support for Android WebView-specific protocol schemes:
18 // 19 //
19 // - "content:" scheme is used for accessing data from Android content 20 // - "content:" scheme is used for accessing data from Android content
20 // providers, see http://developer.android.com/guide/topics/providers/ 21 // providers, see http://developer.android.com/guide/topics/providers/
21 // content-provider-basics.html#ContentURIs 22 // content-provider-basics.html#ContentURIs
22 // 23 //
23 // - "file:" scheme extension for accessing application assets and resources 24 // - "file:" scheme extension for accessing application assets and resources
24 // (file:///android_asset/ and file:///android_res/), see 25 // (file:///android_asset/ and file:///android_res/), see
25 // http://developer.android.com/reference/android/webkit/ 26 // http://developer.android.com/reference/android/webkit/
26 // WebSettings.html#setAllowFileAccess(boolean) 27 // WebSettings.html#setAllowFileAccess(boolean)
27 void RegisterAndroidProtocolsOnIOThread( 28 scoped_ptr<net::URLRequestJobFactory> CreateAndroidRequestJobFactory(
28 net::URLRequestContext* context, 29 scoped_ptr<net::URLRequestJobFactory> job_factory);
29 net::URLRequestJobFactory* job_factory);
30 30
31 bool RegisterAndroidProtocolHandler(JNIEnv* env); 31 bool RegisterAndroidProtocolHandler(JNIEnv* env);
mmenke 2012/12/13 16:12:04 nit: While you're here, mind adding a line break
32 } // namespace android_webview 32 } // namespace android_webview
33 33
34 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_ 34 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698