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

Unified Diff: third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs

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/csharp/Grpc.Core/IAsyncStreamReader.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs b/third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
similarity index 76%
copy from third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
copy to third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
index 9f620eb4012e35421383ce544f51d7087f4100a1..49e1ea783253b1124e750a4bbd9baebe82c07972 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
+++ b/third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamReader.cs
@@ -1,7 +1,7 @@
#region Copyright notice and license
-// Protocol Buffers - Google's data interchange format
-// Copyright 2008 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
+
+// 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
@@ -28,15 +28,23 @@
// 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.
+
#endregion
-namespace Google.Protobuf.WellKnownTypes
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Grpc.Core
{
- public static partial class WrappersReflection
+ /// <summary>
+ /// A stream of messages to be read.
+ /// </summary>
+ /// <typeparam name="T">The message type.</typeparam>
+ public interface IAsyncStreamReader<T> : IAsyncEnumerator<T>
{
- /// <summary>
- /// Field number for the single "value" field in all wrapper types.
- /// </summary>
- internal const int WrapperValueFieldNumber = Int32Value.ValueFieldNumber;
+ // TODO(jtattermusch): consider just using IAsyncEnumerator instead of this interface.
}
}
« no previous file with comments | « third_party/grpc/src/csharp/Grpc.Core/GrpcEnvironment.cs ('k') | third_party/grpc/src/csharp/Grpc.Core/IAsyncStreamWriter.cs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698