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

Unified Diff: android_webview/native/android_protocol_handler.h

Issue 12377051: [android_webview] Don't intercept resource and asset URLRequests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 a26c8027f93848f06f22b4a9a99cf8b2e5ae325b..82266b8663c5b6ea531626daf8e09ff81950bc91 100644
--- a/android_webview/native/android_protocol_handler.h
+++ b/android_webview/native/android_protocol_handler.h
@@ -7,27 +7,29 @@
#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 URLRequestJobFactory;
} // namespace net
namespace android_webview {
-class AwURLRequestJobFactory;
-// This class adds support for Android WebView-specific protocol schemes:
+// These method register support for Android WebView-specific protocol 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();
+
// - "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> CreateAndroidRequestJobFactory(
- scoped_ptr<AwURLRequestJobFactory> job_factory);
+scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
+ CreateAssetFileProtocolHandler();
bool RegisterAndroidProtocolHandler(JNIEnv* env);

Powered by Google App Engine
This is Rietveld 408576698