| 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 <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
| 6 | 6 |
| 7 #include "cronet_c_for_grpc.h" | 7 #include "cronet_c_for_grpc.h" |
| 8 | 8 |
| 9 // Interface for installing Cronet. | 9 // Interface for installing Cronet. |
| 10 CRONET_EXPORT |
| 10 @interface Cronet : NSObject | 11 @interface Cronet : NSObject |
| 11 | 12 |
| 12 // Sets whether HTTP/2 should be supported by CronetEngine. This method only has | 13 // Sets whether HTTP/2 should be supported by CronetEngine. This method only has |
| 13 // any effect before |start| is called. | 14 // any effect before |start| is called. |
| 14 + (void)setHttp2Enabled:(BOOL)http2Enabled; | 15 + (void)setHttp2Enabled:(BOOL)http2Enabled; |
| 15 | 16 |
| 16 // Sets whether QUIC should be supported by CronetEngine. This method only has | 17 // Sets whether QUIC should be supported by CronetEngine. This method only has |
| 17 // any effect before |start| is called. | 18 // any effect before |start| is called. |
| 18 + (void)setQuicEnabled:(BOOL)quicEnabled; | 19 + (void)setQuicEnabled:(BOOL)quicEnabled; |
| 19 | 20 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 + (void)stopNetLog; | 47 + (void)stopNetLog; |
| 47 | 48 |
| 48 // Returns the full user-agent that the stack uses. | 49 // Returns the full user-agent that the stack uses. |
| 49 // This is the exact string servers will see. | 50 // This is the exact string servers will see. |
| 50 + (NSString*)getUserAgent; | 51 + (NSString*)getUserAgent; |
| 51 | 52 |
| 52 // Get a pointer to global instance of cronet_engine for GRPC C API. | 53 // Get a pointer to global instance of cronet_engine for GRPC C API. |
| 53 + (cronet_engine*)getGlobalEngine; | 54 + (cronet_engine*)getGlobalEngine; |
| 54 | 55 |
| 55 @end | 56 @end |
| OLD | NEW |