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

Unified 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: sync 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 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 0fde454cdfdb73f8fb65edc72ca6ffe804eea8a8..a26c8027f93848f06f22b4a9a99cf8b2e5ae325b 100644
--- a/android_webview/native/android_protocol_handler.h
+++ b/android_webview/native/android_protocol_handler.h
@@ -6,9 +6,11 @@
#define ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
#include "base/android/jni_android.h"
+#include "base/memory/scoped_ptr.h"
namespace net {
class URLRequestContext;
+class URLRequestJobFactory;
} // namespace net
namespace android_webview {
@@ -24,11 +26,11 @@ class AwURLRequestJobFactory;
// (file:///android_asset/ and file:///android_res/), see
// http://developer.android.com/reference/android/webkit/
// WebSettings.html#setAllowFileAccess(boolean)
-void RegisterAndroidProtocolsOnIOThread(
- net::URLRequestContext* context,
- AwURLRequestJobFactory* job_factory);
+scoped_ptr<net::URLRequestJobFactory> CreateAndroidRequestJobFactory(
+ scoped_ptr<AwURLRequestJobFactory> job_factory);
bool RegisterAndroidProtocolHandler(JNIEnv* env);
+
} // namespace android_webview
#endif // ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
« 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