| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Signal with resolved server address. | 125 // Signal with resolved server address. |
| 126 // Parameters are port, server address and resolved server address. | 126 // Parameters are port, server address and resolved server address. |
| 127 // This signal will be sent only if server address is resolved successfully. | 127 // This signal will be sent only if server address is resolved successfully. |
| 128 sigslot::signal3<TurnPort*, | 128 sigslot::signal3<TurnPort*, |
| 129 const rtc::SocketAddress&, | 129 const rtc::SocketAddress&, |
| 130 const rtc::SocketAddress&> SignalResolvedServerAddress; | 130 const rtc::SocketAddress&> SignalResolvedServerAddress; |
| 131 | 131 |
| 132 // This signal is only for testing purpose. | 132 // This signal is only for testing purpose. |
| 133 sigslot::signal3<TurnPort*, const rtc::SocketAddress&, int> | 133 sigslot::signal3<TurnPort*, const rtc::SocketAddress&, int> |
| 134 SignalCreatePermissionResult; | 134 SignalCreatePermissionResult; |
| 135 // For testing only. |
| 136 void FlushRequests() { request_manager_.Flush(); } |
| 135 | 137 |
| 136 protected: | 138 protected: |
| 137 TurnPort(rtc::Thread* thread, | 139 TurnPort(rtc::Thread* thread, |
| 138 rtc::PacketSocketFactory* factory, | 140 rtc::PacketSocketFactory* factory, |
| 139 rtc::Network* network, | 141 rtc::Network* network, |
| 140 rtc::AsyncPacketSocket* socket, | 142 rtc::AsyncPacketSocket* socket, |
| 141 const std::string& username, | 143 const std::string& username, |
| 142 const std::string& password, | 144 const std::string& password, |
| 143 const ProtocolAddress& server_address, | 145 const ProtocolAddress& server_address, |
| 144 const RelayCredentials& credentials, | 146 const RelayCredentials& credentials, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 friend class TurnEntry; | 247 friend class TurnEntry; |
| 246 friend class TurnAllocateRequest; | 248 friend class TurnAllocateRequest; |
| 247 friend class TurnRefreshRequest; | 249 friend class TurnRefreshRequest; |
| 248 friend class TurnCreatePermissionRequest; | 250 friend class TurnCreatePermissionRequest; |
| 249 friend class TurnChannelBindRequest; | 251 friend class TurnChannelBindRequest; |
| 250 }; | 252 }; |
| 251 | 253 |
| 252 } // namespace cricket | 254 } // namespace cricket |
| 253 | 255 |
| 254 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ | 256 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ |
| OLD | NEW |