| 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 "c_for_grpc.h" |
| 8 | 8 |
| 9 // Interface for installing Cronet. | 9 // Interface for installing Cronet. |
| 10 CRONET_EXPORT | 10 // TODO(gcasto): Should this macro be separate from the one defined in |
| 11 // c_for_grpc.h? |
| 12 GRPC_SUPPORT_EXPORT |
| 11 @interface Cronet : NSObject | 13 @interface Cronet : NSObject |
| 12 | 14 |
| 13 // Sets whether HTTP/2 should be supported by CronetEngine. This method only has | 15 // Sets whether HTTP/2 should be supported by CronetEngine. This method only has |
| 14 // any effect before |start| is called. | 16 // any effect before |start| is called. |
| 15 + (void)setHttp2Enabled:(BOOL)http2Enabled; | 17 + (void)setHttp2Enabled:(BOOL)http2Enabled; |
| 16 | 18 |
| 17 // Sets whether QUIC should be supported by CronetEngine. This method only has | 19 // Sets whether QUIC should be supported by CronetEngine. This method only has |
| 18 // any effect before |start| is called. | 20 // any effect before |start| is called. |
| 19 + (void)setQuicEnabled:(BOOL)quicEnabled; | 21 + (void)setQuicEnabled:(BOOL)quicEnabled; |
| 20 | 22 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 48 | 50 |
| 49 // Stop net-internals logging and flush file to disk. If a logging session is | 51 // Stop net-internals logging and flush file to disk. If a logging session is |
| 50 // not in progress this call is ignored. | 52 // not in progress this call is ignored. |
| 51 + (void)stopNetLog; | 53 + (void)stopNetLog; |
| 52 | 54 |
| 53 // Returns the full user-agent that the stack uses. | 55 // Returns the full user-agent that the stack uses. |
| 54 // This is the exact string servers will see. | 56 // This is the exact string servers will see. |
| 55 + (NSString*)getUserAgent; | 57 + (NSString*)getUserAgent; |
| 56 | 58 |
| 57 // Get a pointer to global instance of cronet_engine for GRPC C API. | 59 // Get a pointer to global instance of cronet_engine for GRPC C API. |
| 58 + (cronet_engine*)getGlobalEngine; | 60 + (stream_engine*)getGlobalEngine; |
| 59 | 61 |
| 60 @end | 62 @end |
| OLD | NEW |