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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cronet/ios/Cronet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_c_for_grpc.h
diff --git a/components/cronet/ios/cronet_c_for_grpc.h b/components/cronet/ios/cronet_c_for_grpc.h
new file mode 100644
index 0000000000000000000000000000000000000000..f270002355139928d37ec30b06aed9d4950d22c9
--- /dev/null
+++ b/components/cronet/ios/cronet_c_for_grpc.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_
+#define COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_
+
+#include "bidirectional_stream_c.h"
+
+// TODO(mef): Remove this header after transition to bidirectional_stream_c.h
+// See crbug.com/650462 for details.
+
+/* Define deprecated Cronet Engine API using current API. */
+#define cronet_engine stream_engine
+
+/* Define deprecated Bidirectional Stream API using current API. */
+#define cronet_bidirectional_stream bidirectional_stream
+#define cronet_bidirectional_stream_header bidirectional_stream_header
+#define cronet_bidirectional_stream_header_array \
+ bidirectional_stream_header_array
+#define cronet_bidirectional_stream_callback bidirectional_stream_callback
+
+#define cronet_bidirectional_stream_create bidirectional_stream_create
+#define cronet_bidirectional_stream_destroy bidirectional_stream_destroy
+#define cronet_bidirectional_stream_disable_auto_flush \
+ bidirectional_stream_disable_auto_flush
+#define cronet_bidirectional_stream_delay_request_headers_until_flush \
+ bidirectional_stream_delay_request_headers_until_flush
+#define cronet_bidirectional_stream_start bidirectional_stream_start
+#define cronet_bidirectional_stream_read bidirectional_stream_read
+#define cronet_bidirectional_stream_write bidirectional_stream_write
+#define cronet_bidirectional_stream_flush bidirectional_stream_flush
+#define cronet_bidirectional_stream_cancel bidirectional_stream_cancel
+#define cronet_bidirectional_stream_is_done bidirectional_stream_is_done
+
+#endif // COMPONENTS_CRONET_IOS_CRONET_C_FOR_GRPC_H_
« 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