aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+Cronet.h
diff options
context:
space:
mode:
authorGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-26 09:39:26 -0700
committerGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-26 09:39:26 -0700
commitaed1de9d2a315ab88d49444fb1314b3845b4046b (patch)
tree7761d3abde358b0159cf048a13c6af7b7454d934 /src/objective-c/GRPCClient/GRPCCall+Cronet.h
parent6d2ed00a1a6c1a2d101d40f125ecb688a37cdad0 (diff)
Style guide related feedback fixes.
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+Cronet.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+Cronet.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+Cronet.h b/src/objective-c/GRPCClient/GRPCCall+Cronet.h
index d623ed61a3..b7676d0245 100644
--- a/src/objective-c/GRPCClient/GRPCCall+Cronet.h
+++ b/src/objective-c/GRPCClient/GRPCCall+Cronet.h
@@ -39,9 +39,16 @@
*/
@interface GRPCCall (Cronet)
-+(void)useCronet:(cronet_engine *)cronet_engine;
+/* This method should be called before issuing the first RPC. It should be
+ * called only once. Create an instance of Cronet engine in your app elsewhere
+ * and pass the instance pointer in the cronet_engine parameter. Once set,
+ * all subsequent RPCs will use Cronet transport. The method is not thread
+ * safe.
+ */
+
++(void)useCronetWithEngine:(cronet_engine *)engine;
-+(void *)getCronetEngine;
++(cronet_engine *)cronetEngine;
+(BOOL)isUsingCronet;