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

Side by Side Diff: components/cronet/ios/cronet_c_for_grpc.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/Cronet.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_
6 #define COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_
7
8 #include "bidirectional_stream_c.h"
9
10 // TODO(mef): Remove this header after transition to bidirectional_stream_c.h
11 // See crbug.com/650462 for details.
12
13 /* Define deprecated Cronet Engine API using current API. */
14 #define cronet_engine stream_engine
15
16 /* Define deprecated Bidirectional Stream API using current API. */
17 #define cronet_bidirectional_stream bidirectional_stream
18 #define cronet_bidirectional_stream_header bidirectional_stream_header
19 #define cronet_bidirectional_stream_header_array \
20 bidirectional_stream_header_array
21 #define cronet_bidirectional_stream_callback bidirectional_stream_callback
22
23 #define cronet_bidirectional_stream_create bidirectional_stream_create
24 #define cronet_bidirectional_stream_destroy bidirectional_stream_destroy
25 #define cronet_bidirectional_stream_disable_auto_flush \
26 bidirectional_stream_disable_auto_flush
27 #define cronet_bidirectional_stream_delay_request_headers_until_flush \
28 bidirectional_stream_delay_request_headers_until_flush
29 #define cronet_bidirectional_stream_start bidirectional_stream_start
30 #define cronet_bidirectional_stream_read bidirectional_stream_read
31 #define cronet_bidirectional_stream_write bidirectional_stream_write
32 #define cronet_bidirectional_stream_flush bidirectional_stream_flush
33 #define cronet_bidirectional_stream_cancel bidirectional_stream_cancel
34 #define cronet_bidirectional_stream_is_done bidirectional_stream_is_done
35
36 #endif // COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_
OLDNEW
« no previous file with comments | « components/cronet/ios/Cronet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698