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

Unified Diff: android_webview/browser/net/init_native_callback.h

Issue 12387028: Fix for CookieManager init race condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/browser/net/init_native_callback.h
diff --git a/android_webview/browser/net/init_native_callback.h b/android_webview/browser/net/init_native_callback.h
index 69855b6c2694b6184924adbea86126a3da91195d..cc98f8f147d1537ee7ebd2f46fc04b43896b6194 100644
--- a/android_webview/browser/net/init_native_callback.h
+++ b/android_webview/browser/net/init_native_callback.h
@@ -18,8 +18,11 @@ class AwURLRequestJobFactory;
// This is called on the IO thread when the network URLRequestContext has been
// initialized but not used. Note that the UI thread is blocked during this
// call.
-scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactoryAndCookieMonster(
- net::URLRequestContext* context,
+void DidCreateURLRequestContextOnIOThread(net::URLRequestContext* context);
+
+// Called lazily when the job factory is being constructed; allows android
+// webview specific request factories to be added to the chain.
+scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactory(
scoped_ptr<AwURLRequestJobFactory> job_factory);
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698