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

Unified Diff: third_party/grpc/src/ruby/lib/grpc/grpc.rb

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
Index: third_party/grpc/src/ruby/lib/grpc/grpc.rb
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_globals.py b/third_party/grpc/src/ruby/lib/grpc/grpc.rb
similarity index 89%
copy from third_party/WebKit/Source/bindings/scripts/v8_globals.py
copy to third_party/grpc/src/ruby/lib/grpc/grpc.rb
index 9ca2a3574a9fdb27ae567f8c6ab0a301a9bdbaf2..d8a4947494f010b68a8fa2bd81f9fa8b011f1030 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_globals.py
+++ b/third_party/grpc/src/ruby/lib/grpc/grpc.rb
@@ -1,4 +1,5 @@
-# Copyright (C) 2013 Google Inc. All rights reserved.
+# Copyright 2015-2016, 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,7 +27,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-"""Module to share global variables (includes and interfaces) across modules."""
-
-includes = set()
-interfaces = {}
+begin
+ require "grpc/#{RUBY_VERSION.sub(/\.\d$/, '')}/grpc_c"
+rescue LoadError
+ require 'grpc/grpc_c'
+end
« no previous file with comments | « third_party/grpc/src/ruby/lib/grpc/generic/service.rb ('k') | third_party/grpc/src/ruby/lib/grpc/logconfig.rb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698