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

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: 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 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 5910d861d066797bb317c11de0e9cfad54e0bb3c..41e5053fe4b6e6ea321c3ec710ae644d73f90fdb 100644
--- a/android_webview/native/android_protocol_handler.h
+++ b/android_webview/native/android_protocol_handler.h
@@ -6,6 +6,7 @@
#define ANDROID_WEBVIEW_NATIVE_ANDROID_PROTOCOL_HANDLER_H_
#include "base/android/jni_android.h"
+#include "base/memory/scoped_ptr.h"
namespace net {
class URLRequestContext;
@@ -24,9 +25,8 @@ namespace android_webview {
// (file:///android_asset/ and file:///android_res/), see
// http://developer.android.com/reference/android/webkit/
// WebSettings.html#setAllowFileAccess(boolean)
-void RegisterAndroidProtocolsOnIOThread(
- net::URLRequestContext* context,
- net::URLRequestJobFactory* job_factory);
+scoped_ptr<net::URLRequestJobFactory> CreateAndroidRequestJobFactory(
+ scoped_ptr<net::URLRequestJobFactory> job_factory);
bool RegisterAndroidProtocolHandler(JNIEnv* env);
mmenke 2012/12/13 16:12:04 nit: While you're here, mind adding a line break
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698