OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BLIMP_CLIENT_PUBLIC_SESSION_ASSIGNMENT_H_ | 5 #ifndef BLIMP_CLIENT_PUBLIC_SESSION_ASSIGNMENT_H_ |
6 #define BLIMP_CLIENT_PUBLIC_SESSION_ASSIGNMENT_H_ | 6 #define BLIMP_CLIENT_PUBLIC_SESSION_ASSIGNMENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "net/base/ip_endpoint.h" | 11 #include "blimp/common/assignment_options.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 class X509Certificate; | 14 class X509Certificate; |
15 } | 15 } |
16 | 16 |
17 namespace blimp { | 17 namespace blimp { |
18 namespace client { | 18 namespace client { |
19 | 19 |
20 // A Java counterpart will be generated for this enum. | 20 // A Java counterpart will be generated for this enum. |
21 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.blimp_public.session | 21 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.blimp_public.session |
(...skipping 26 matching lines...) Expand all Loading... |
48 Assignment(const Assignment& other); | 48 Assignment(const Assignment& other); |
49 ~Assignment(); | 49 ~Assignment(); |
50 | 50 |
51 // Returns false if the net::IPEndPoint has an unspecified IP, port, or | 51 // Returns false if the net::IPEndPoint has an unspecified IP, port, or |
52 // transport protocol. | 52 // transport protocol. |
53 bool IsValid() const; | 53 bool IsValid() const; |
54 | 54 |
55 // Specifies the transport to use to connect to the engine. | 55 // Specifies the transport to use to connect to the engine. |
56 TransportProtocol transport_protocol; | 56 TransportProtocol transport_protocol; |
57 | 57 |
58 // Specifies the IP address and port on which to reach the engine. | 58 // Specifies the transport-specific options to connect to an Engine. |
59 net::IPEndPoint engine_endpoint; | 59 AssignmentOptions assignment_options; |
60 | 60 |
61 // Used to authenticate to the specified engine. | 61 // Used to authenticate to the specified engine. |
62 std::string client_auth_token; | 62 std::string client_auth_token; |
63 | 63 |
64 // Specifies the engine's X.509 certificate. | 64 // Specifies the engine's X.509 certificate. |
65 scoped_refptr<net::X509Certificate> cert; | 65 scoped_refptr<net::X509Certificate> cert; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace client | 68 } // namespace client |
69 } // namespace blimp | 69 } // namespace blimp |
70 | 70 |
71 #endif // BLIMP_CLIENT_PUBLIC_SESSION_ASSIGNMENT_H_ | 71 #endif // BLIMP_CLIENT_PUBLIC_SESSION_ASSIGNMENT_H_ |
OLD | NEW |