| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |