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

Unified Diff: android_webview/native/android_protocol_handler.h

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a merge) Created 6 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/android_protocol_handler.h
diff --git a/android_webview/native/android_protocol_handler.h b/android_webview/native/android_protocol_handler.h
index 82266b8663c5b6ea531626daf8e09ff81950bc91..d5a4df1a6c080bfa4b5e00a03b61707d186f8d24 100644
--- a/android_webview/native/android_protocol_handler.h
+++ b/android_webview/native/android_protocol_handler.h
@@ -7,29 +7,26 @@
#include "base/android/jni_android.h"
#include "base/memory/scoped_ptr.h"
-#include "net/url_request/url_request_job_factory.h"
namespace net {
class URLRequestContext;
+class URLRequestInterceptor;
} // namespace net
namespace android_webview {
-// These method register support for Android WebView-specific protocol schemes:
+// These methods create interceptors for Android WebView-specific schemes:
//
// - "content:" scheme is used for accessing data from Android content
// providers, see http://developer.android.com/guide/topics/providers/
// content-provider-basics.html#ContentURIs
-//
-scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
- CreateContentSchemeProtocolHandler();
+scoped_ptr<net::URLRequestInterceptor> CreateContentSchemeRequestInterceptor();
// - "file:" scheme extension for accessing application assets and resources
// (file:///android_asset/ and file:///android_res/), see
// http://developer.android.com/reference/android/webkit/
// WebSettings.html#setAllowFileAccess(boolean)
-scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
- CreateAssetFileProtocolHandler();
+scoped_ptr<net::URLRequestInterceptor> CreateAssetFileRequestInterceptor();
bool RegisterAndroidProtocolHandler(JNIEnv* env);
« no previous file with comments | « android_webview/browser/net/init_native_callback.h ('k') | android_webview/native/android_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698