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

Side by Side Diff: components/cronet/ios/Cronet.mm

Issue 1947903003: Cronet Dynamic Framework for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Misha's comments. Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « components/cronet.gypi ('k') | components/cronet/ios/Info.plist » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "components/cronet/ios/Cronet.h" 5 #import "components/cronet/ios/Cronet.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 + (cronet_engine*)getGlobalEngine { 114 + (cronet_engine*)getGlobalEngine {
115 DCHECK(gChromeNet.Get().get()); 115 DCHECK(gChromeNet.Get().get());
116 if (gChromeNet.Get().get()) { 116 if (gChromeNet.Get().get()) {
117 static cronet_engine engine; 117 static cronet_engine engine;
118 engine.obj = gChromeNet.Get().get(); 118 engine.obj = gChromeNet.Get().get();
119 return &engine; 119 return &engine;
120 } 120 }
121 return nil; 121 return nil;
122 } 122 }
123 123
124 // This is a non-public dummy method that prevents the linker from stripping out
125 // the otherwise non-referenced methods from 'cronet_bidirectional_stream.cc'.
126 + (void)preventStrippingCronetBidirectionalStream {
127 cronet_bidirectional_stream_create(NULL, 0, 0);
128 }
129
124 @end 130 @end
OLDNEW
« no previous file with comments | « components/cronet.gypi ('k') | components/cronet/ios/Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698