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

Unified Diff: components/cronet/ios/Cronet.mm

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Address comments Created 4 years, 2 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') | components/cronet/ios/cronet_bidirectional_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/Cronet.mm
diff --git a/components/cronet/ios/Cronet.mm b/components/cronet/ios/Cronet.mm
index 150be2435ff32b9919574f60c8766995eb4f698b..319c1d4340c0772483cd1f36581c2b12c501c33d 100644
--- a/components/cronet/ios/Cronet.mm
+++ b/components/cronet/ios/Cronet.mm
@@ -254,11 +254,11 @@ class CronetHttpProtocolHandlerDelegate
encoding:[NSString defaultCStringEncoding]];
}
-+ (cronet_engine*)getGlobalEngine {
++ (stream_engine*)getGlobalEngine {
DCHECK(gChromeNet.Get().get());
if (gChromeNet.Get().get()) {
- static cronet_engine engine;
- engine.obj = gChromeNet.Get().get();
+ static stream_engine engine;
+ engine.obj = gChromeNet.Get()->GetURLRequestContextGetter();
return &engine;
}
return nil;
@@ -281,9 +281,9 @@ class CronetHttpProtocolHandlerDelegate
}
// This is a non-public dummy method that prevents the linker from stripping out
-// the otherwise non-referenced methods from 'cronet_bidirectional_stream.cc'.
+// the otherwise non-referenced methods from 'bidirectional_stream.cc'.
+ (void)preventStrippingCronetBidirectionalStream {
- cronet_bidirectional_stream_create(NULL, 0, 0);
+ bidirectional_stream_create(NULL, 0, 0);
}
@end
« no previous file with comments | « components/cronet/ios/Cronet.h ('k') | components/cronet/ios/cronet_bidirectional_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698