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

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

Issue 2611853002: [Cronet] Provide shim from deprecated cronet_c_for_grpc API to bidirectional_stream_c API. (Closed)
Patch Set: Use #define instead of typedef and function forwarders. Created 3 years, 11 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/ios/BUILD.gn ('k') | components/cronet/ios/cronet_c_for_grpc.h » ('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 <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
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
OLDNEW
« no previous file with comments | « components/cronet/ios/BUILD.gn ('k') | components/cronet/ios/cronet_c_for_grpc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698