Index: blimp/common/assignment_options.h |
diff --git a/blimp/common/assignment_options.h b/blimp/common/assignment_options.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30c55d30a93a6038412d9fbe61e864da0ba5ac36 |
--- /dev/null |
+++ b/blimp/common/assignment_options.h |
@@ -0,0 +1,25 @@ |
+// 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. |
+ |
+#ifndef BLIMP_COMMON_ASSIGNMENT_OPTIONS_H_ |
+#define BLIMP_COMMON_ASSIGNMENT_OPTIONS_H_ |
+ |
+#include "net/base/ip_endpoint.h" |
+ |
+namespace blimp { |
+ |
+// Transport-specific options struct to connect to a specific Engine. This |
+// structure is meant to be generated by the Engine and used by the client. |
+// Clients (such as tests) are expected to pass this on as an opaque structure. |
+struct AssignmentOptions { |
+ // Specifies the IP address and port on which to reach the engine. |
+ net::IPEndPoint engine_endpoint; |
+ |
+ // Specifies an optional file-descriptor to listen to (mainly for gRPC). |
+ int file_descriptor = -1; |
+}; |
+ |
+} // namespace blimp |
+ |
+#endif // BLIMP_COMMON_ASSIGNMENT_OPTIONS_H_ |