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

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

Issue 18618004: Change BrowserThreadDelegate to run Init() async. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/aw_url_request_context_getter.h
diff --git a/android_webview/browser/net/aw_url_request_context_getter.h b/android_webview/browser/net/aw_url_request_context_getter.h
index 418e921f2cdc94b6229e603715eeb7b2a2b23d80..5d38f170a7a16fa80a6b41136ea366432aa40be5 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.h
+++ b/android_webview/browser/net/aw_url_request_context_getter.h
@@ -33,6 +33,10 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter,
void InitializeOnNetworkThread();
+ // must be called prior to Init() and contain the minimum amount of code
awong 2013/07/11 20:43:48 Please use correct capitalization and punctuation
+ // that needs to happen synchronously to UI initialization
+ void InitializeOnUiThread();
+
// content::BrowserThreadDelegate implementation.
virtual void Init() OVERRIDE;
virtual void CleanUp() OVERRIDE {}
@@ -58,6 +62,7 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter,
void PopulateNetworkSessionParams(net::HttpNetworkSession::Params* params);
AwBrowserContext* browser_context_; // weak
+ scoped_refptr<net::CookieStore> cookie_store_;
scoped_ptr<net::URLRequestContext> url_request_context_;
scoped_ptr<net::ProxyConfigService> proxy_config_service_;
scoped_ptr<net::URLRequestJobFactory> job_factory_;

Powered by Google App Engine
This is Rietveld 408576698