| 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 "bidirectional_stream_c.h" | 7 #include "bidirectional_stream_c.h" |
| 8 | 8 |
| 9 // TODO(mef): Remove this header after transition to bidirectional_stream_c.h |
| 10 // See crbug.com/650462 for details. |
| 11 #include "cronet_c_for_grpc.h" |
| 12 |
| 9 // A block, that takes a request, and returns YES if the request should | 13 // A block, that takes a request, and returns YES if the request should |
| 10 // be handled. | 14 // be handled. |
| 11 typedef BOOL (^RequestFilterBlock)(NSURLRequest* request); | 15 typedef BOOL (^RequestFilterBlock)(NSURLRequest* request); |
| 12 | 16 |
| 13 // Interface for installing Cronet. | 17 // Interface for installing Cronet. |
| 14 // TODO(gcasto): Should this macro be separate from the one defined in | 18 // TODO(gcasto): Should this macro be separate from the one defined in |
| 15 // bidirectional_stream_c.h? | 19 // bidirectional_stream_c.h? |
| 16 GRPC_SUPPORT_EXPORT | 20 GRPC_SUPPORT_EXPORT |
| 17 @interface Cronet : NSObject | 21 @interface Cronet : NSObject |
| 18 | 22 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 108 |
| 105 // Sets Host Resolver Rules for testing. | 109 // Sets Host Resolver Rules for testing. |
| 106 // This method must be called after |start| has been called. | 110 // This method must be called after |start| has been called. |
| 107 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting; | 111 + (void)setHostResolverRulesForTesting:(NSString*)hostResolverRulesForTesting; |
| 108 | 112 |
| 109 // Enables TestCertVerifier which accepts all certificates for testing. | 113 // Enables TestCertVerifier which accepts all certificates for testing. |
| 110 // This method only has any effect before |start| is called. | 114 // This method only has any effect before |start| is called. |
| 111 + (void)enableTestCertVerifierForTesting; | 115 + (void)enableTestCertVerifierForTesting; |
| 112 | 116 |
| 113 @end | 117 @end |
| OLD | NEW |