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

Unified Diff: android_webview/native/net_init_native_callback.cc

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/net_init_native_callback.cc
diff --git a/android_webview/native/net_init_native_callback.cc b/android_webview/native/net_init_native_callback.cc
index 3e7ff824cb013f5d630634516bbbe4bcce26b560..585282f06b4232cad7b77bc4b0831818a43144c3 100644
--- a/android_webview/native/net_init_native_callback.cc
+++ b/android_webview/native/net_init_native_callback.cc
@@ -4,16 +4,19 @@
#include "android_webview/browser/net/init_native_callback.h"
+#include "android_webview/browser/net/aw_url_request_job_factory.h"
#include "android_webview/native/android_protocol_handler.h"
#include "android_webview/native/cookie_manager.h"
+#include "net/url_request/url_request_job_factory.h"
namespace android_webview {
class AwURLRequestJobFactory;
-void OnNetworkStackInitialized(net::URLRequestContext* context,
- AwURLRequestJobFactory* job_factory) {
- RegisterAndroidProtocolsOnIOThread(context, job_factory);
- SetCookieMonsterOnNetworkStackInit(context, job_factory);
+scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactoryAndCookieMonster(
+ net::URLRequestContext* context,
+ scoped_ptr<AwURLRequestJobFactory> job_factory) {
+ SetCookieMonsterOnNetworkStackInit(context);
+ return CreateAndroidRequestJobFactory(job_factory.Pass());
}
-}
+} // namespace android_webview
« no previous file with comments | « android_webview/native/cookie_manager.cc ('k') | chrome/browser/component_updater/component_updater_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698