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_SESSION_ASSIGNMENT_SOURCE_H_ | 5 #ifndef BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ |
6 #define BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ | 6 #define BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // An Assignment contains the configuration data needed for a client | 38 // An Assignment contains the configuration data needed for a client |
39 // to connect to the engine. | 39 // to connect to the engine. |
40 struct BLIMP_CLIENT_EXPORT Assignment { | 40 struct BLIMP_CLIENT_EXPORT Assignment { |
41 enum TransportProtocol { | 41 enum TransportProtocol { |
42 UNKNOWN = 0, | 42 UNKNOWN = 0, |
43 SSL = 1, | 43 SSL = 1, |
44 TCP = 2, | 44 TCP = 2, |
45 }; | 45 }; |
46 | 46 |
47 Assignment(); | 47 Assignment(); |
| 48 Assignment(const Assignment& other); |
48 ~Assignment(); | 49 ~Assignment(); |
49 | 50 |
50 // Returns true if the net::IPEndPoint has an unspecified IP, port, or | 51 // Returns true if the net::IPEndPoint has an unspecified IP, port, or |
51 // transport protocol. | 52 // transport protocol. |
52 bool IsValid() const; | 53 bool IsValid() const; |
53 | 54 |
54 // Specifies the transport to use to connect to the engine. | 55 // Specifies the transport to use to connect to the engine. |
55 TransportProtocol transport_protocol; | 56 TransportProtocol transport_protocol; |
56 | 57 |
57 // Specifies the IP address and port on which to reach the engine. | 58 // Specifies the IP address and port on which to reach the engine. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 127 |
127 base::WeakPtrFactory<AssignmentSource> weak_factory_; | 128 base::WeakPtrFactory<AssignmentSource> weak_factory_; |
128 | 129 |
129 DISALLOW_COPY_AND_ASSIGN(AssignmentSource); | 130 DISALLOW_COPY_AND_ASSIGN(AssignmentSource); |
130 }; | 131 }; |
131 | 132 |
132 } // namespace client | 133 } // namespace client |
133 } // namespace blimp | 134 } // namespace blimp |
134 | 135 |
135 #endif // BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ | 136 #endif // BLIMP_CLIENT_SESSION_ASSIGNMENT_SOURCE_H_ |
OLD | NEW |