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

Unified Diff: ios/crnet/CrNet.h

Issue 2134843002: Fixed crashes in CrNetEnvironment::ConfigureSdchOnNetworkThread() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/cronet/ios/Cronet.h ('k') | ios/crnet/CrNet.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/CrNet.h
diff --git a/ios/crnet/CrNet.h b/ios/crnet/CrNet.h
index 01b091642682460355ccf4217ac8fc893099a80d..0be9b7769e0e9db2f12176e64cadb09e68e807a1 100644
--- a/ios/crnet/CrNet.h
+++ b/ios/crnet/CrNet.h
@@ -50,7 +50,11 @@ __attribute__((visibility("default")))
// Installs CrNet. Once installed, CrNet intercepts and handles all
// NSURLConnection and NSURLRequests issued by the app, including UIWebView page
-// loads.
+// loads. It is recommended to call this method on the application main thread.
+// If the method is called on any thread other than the main one, the method
+// will internally try to execute synchronously using the main GCD queue.
+// Please make sure that the main thread is not blocked by a job
+// that calls this method; otherwise, a deadlock can occur.
+ (void)install;
// Installs CrNet into an NSURLSession, passed in by the caller. Note that this
« no previous file with comments | « components/cronet/ios/Cronet.h ('k') | ios/crnet/CrNet.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698