| 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 REMOTING_PROTOCOL_ICE_CONFIG_H_ | 5 #ifndef REMOTING_PROTOCOL_ICE_CONFIG_H_ |
| 6 #define REMOTING_PROTOCOL_ICE_CONFIG_H_ | 6 #define REMOTING_PROTOCOL_ICE_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "third_party/webrtc/base/socketaddress.h" | 12 #include "third_party/webrtc/base/socketaddress.h" |
| 13 #include "third_party/webrtc/p2p/base/portallocator.h" | 13 #include "third_party/webrtc/p2p/base/portallocator.h" |
| 14 | 14 |
| 15 namespace remoting { | 15 namespace remoting { |
| 16 namespace protocol { | 16 namespace protocol { |
| 17 | 17 |
| 18 struct IceConfig { | 18 struct IceConfig { |
| 19 IceConfig(); | 19 IceConfig(); |
| 20 IceConfig(const IceConfig& other); |
| 20 ~IceConfig(); | 21 ~IceConfig(); |
| 21 | 22 |
| 22 bool is_null() const { return expiration_time.is_null(); } | 23 bool is_null() const { return expiration_time.is_null(); } |
| 23 | 24 |
| 24 // Time when the config will stop being valid and need to be refreshed. | 25 // Time when the config will stop being valid and need to be refreshed. |
| 25 base::Time expiration_time; | 26 base::Time expiration_time; |
| 26 | 27 |
| 27 std::vector<rtc::SocketAddress> stun_servers; | 28 std::vector<rtc::SocketAddress> stun_servers; |
| 28 | 29 |
| 29 // Legacy GTURN relay servers. | 30 // Legacy GTURN relay servers. |
| 30 std::vector<std::string> relay_servers; | 31 std::vector<std::string> relay_servers; |
| 31 std::string relay_token; | 32 std::string relay_token; |
| 32 | 33 |
| 33 // Standard TURN servers | 34 // Standard TURN servers |
| 34 std::vector<cricket::RelayServerConfig> turn_servers; | 35 std::vector<cricket::RelayServerConfig> turn_servers; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace protocol | 38 } // namespace protocol |
| 38 } // namespace remoting | 39 } // namespace remoting |
| 39 | 40 |
| 40 #endif // REMOTING_PROTOCOL_ICE_CONFIG_H_ | 41 #endif // REMOTING_PROTOCOL_ICE_CONFIG_H_ |
| OLD | NEW |