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

Unified Diff: third_party/grpc/src/csharp/Grpc.Core/IServerStreamWriter.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/IServerStreamWriter.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs b/third_party/grpc/src/csharp/Grpc.Core/IServerStreamWriter.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/IServerStreamWriter.cs
index 9f620eb4012e35421383ce544f51d7087f4100a1..9f3af59109b2083205a659af5bc3d0503fe75ad5 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
+++ b/third_party/grpc/src/csharp/Grpc.Core/IServerStreamWriter.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,22 @@
// 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 writable stream of messages that is used in server-side handlers.
+ /// </summary>
+ public interface IServerStreamWriter<T> : IAsyncStreamWriter<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 IAsyncStreamWriter instead of this interface.
}
}

Powered by Google App Engine
This is Rietveld 408576698