Index: blimp/common/proto/helium_service.proto |
diff --git a/blimp/common/proto/helium_service.proto b/blimp/common/proto/helium_service.proto |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f72dc6499eaa7b3ca54ef1da7322665e4f907942 |
--- /dev/null |
+++ b/blimp/common/proto/helium_service.proto |
@@ -0,0 +1,23 @@ |
+// 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. |
+ |
+syntax = "proto3"; |
+ |
+option optimize_for = LITE_RUNTIME; |
+ |
+package blimp; |
+ |
+// This message wraps around a serialized set of bytes from a generic message |
+// used above the transport layer. This is intentionally opaque so that the |
+// transport layer does not know the details of the exact type(s) of messages |
+// inside this serialized bytes. |
+message HeliumWrapper { |
+ bytes serialized_helium_message = 1; |
+} |
+ |
+service HeliumService { |
+ // A bi-directional streaming API that sends and receives a |HeliumWrapper| |
+ // protobuf message. |
+ rpc Stream(stream HeliumWrapper) returns (stream HeliumWrapper) {} |
+} |