OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_PROTOCOL_ICE_CONFIG_H_ | |
6 #define REMOTING_PROTOCOL_ICE_CONFIG_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/time/time.h" | |
12 #include "third_party/webrtc/base/socketaddress.h" | |
13 #include "third_party/webrtc/p2p/base/portallocator.h" | |
14 | |
15 namespace remoting { | |
16 namespace protocol { | |
17 | |
18 struct IceConfig { | |
19 IceConfig(); | |
20 ~IceConfig(); | |
21 | |
22 bool is_null() const { return expiration_time.is_null(); } | |
23 | |
24 // Time when the config will stop being valid and need to be refreshed. | |
25 base::Time expiration_time; | |
26 | |
27 std::vector<rtc::SocketAddress> stun_hosts; | |
Jamie
2016/02/12 22:48:28
s/hosts/servers/, here and below, for consistency
Sergey Ulanov
2016/02/13 01:11:02
Done.
| |
28 | |
29 // Legacy GTURN relay servers. | |
30 std::vector<std::string> relay_hosts; | |
31 std::string relay_token; | |
32 | |
33 // Standard TURN servers | |
34 std::vector<cricket::RelayServerConfig> turn_servers; | |
35 }; | |
36 | |
37 } // namespace protocol | |
38 } // namespace remoting | |
39 | |
40 #endif // REMOTING_PROTOCOL_ICE_CONFIG_H_ | |
OLD | NEW |