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

Unified Diff: third_party/grpc/src/ruby/ext/grpc/rb_call.h

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « third_party/grpc/src/ruby/ext/grpc/rb_byte_buffer.c ('k') | third_party/grpc/src/ruby/ext/grpc/rb_call.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/src/ruby/ext/grpc/rb_call.h
diff --git a/third_party/WebKit/Source/build/win/Precompile.h b/third_party/grpc/src/ruby/ext/grpc/rb_call.h
similarity index 62%
copy from third_party/WebKit/Source/build/win/Precompile.h
copy to third_party/grpc/src/ruby/ext/grpc/rb_call.h
index 8a0ff29c353fc1d30c92d27f369d7c422a579bc8..24adb3477ba26b00620d37a2f142b33c52340c90 100644
--- a/third_party/WebKit/Source/build/win/Precompile.h
+++ b/third_party/grpc/src/ruby/ext/grpc/rb_call.h
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Copyright 2015, Google Inc.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -26,43 +28,39 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Precompiled header for WebKit when built on Windows using
- * GYP-generated project files. Not used by other build
- * configurations.
*
- * Using precompiled headers speeds the build up significantly. On a
- * fast machine (HP Z600, 12 GB of RAM), an ~18% decrease in full
- * build time was measured.
*/
-#if defined(WinPrecompile_h_)
-#error You shouldn't include the precompiled header file more than once.
-#endif
+#ifndef GRPC_RB_CALL_H_
+#define GRPC_RB_CALL_H_
+
+#include <ruby/ruby.h>
+
+#include <grpc/grpc.h>
+
+/* Gets the wrapped call from a VALUE. */
+grpc_call* grpc_rb_get_wrapped_call(VALUE v);
+
+/* Gets the VALUE corresponding to given grpc_call. */
+VALUE grpc_rb_wrap_call(grpc_call* c);
+
+/* Provides the details of an call error */
+const char* grpc_call_error_detail_of(grpc_call_error err);
-#define WinPrecompile_h_
+/* Converts a metadata array to a hash. */
+VALUE grpc_rb_md_ary_to_h(grpc_metadata_array *md_ary);
-#define _USE_MATH_DEFINES // Make math.h behave like other platforms.
+/* grpc_rb_md_ary_convert converts a ruby metadata hash into
+ a grpc_metadata_array.
+*/
+void grpc_rb_md_ary_convert(VALUE md_ary_hash,
+ grpc_metadata_array *md_ary);
-#include <Windows.h>
+/* grpc_rb_eCallError is the ruby class of the exception thrown during call
+ operations. */
+extern VALUE grpc_rb_eCallError;
-#include <errno.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <math.h>
-#include <stdarg.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
+/* Initializes the Call class. */
+void Init_grpc_call();
-#include <algorithm>
-#include <ciso646>
-#include <cmath>
-#include <cstddef>
-#include <limits>
-#include <string>
-#include <utility>
+#endif /* GRPC_RB_CALL_H_ */
« no previous file with comments | « third_party/grpc/src/ruby/ext/grpc/rb_byte_buffer.c ('k') | third_party/grpc/src/ruby/ext/grpc/rb_call.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698