OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2010 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 void SetIceServers( | 153 void SetIceServers( |
154 const ServerAddresses& stun_servers, | 154 const ServerAddresses& stun_servers, |
155 const std::vector<RelayServerConfig>& turn_servers) override { | 155 const std::vector<RelayServerConfig>& turn_servers) override { |
156 stun_servers_ = stun_servers; | 156 stun_servers_ = stun_servers; |
157 turn_servers_ = turn_servers; | 157 turn_servers_ = turn_servers; |
158 } | 158 } |
159 | 159 |
| 160 void SetNetworkIgnoreMask(int network_ignore_mask) override {} |
| 161 |
160 const ServerAddresses& stun_servers() const { return stun_servers_; } | 162 const ServerAddresses& stun_servers() const { return stun_servers_; } |
161 | 163 |
162 const std::vector<RelayServerConfig>& turn_servers() const { | 164 const std::vector<RelayServerConfig>& turn_servers() const { |
163 return turn_servers_; | 165 return turn_servers_; |
164 } | 166 } |
165 | 167 |
166 virtual cricket::PortAllocatorSession* CreateSessionInternal( | 168 virtual cricket::PortAllocatorSession* CreateSessionInternal( |
167 const std::string& content_name, | 169 const std::string& content_name, |
168 int component, | 170 int component, |
169 const std::string& ice_ufrag, | 171 const std::string& ice_ufrag, |
170 const std::string& ice_pwd) override { | 172 const std::string& ice_pwd) override { |
171 return new FakePortAllocatorSession( | 173 return new FakePortAllocatorSession( |
172 worker_thread_, factory_, content_name, component, ice_ufrag, ice_pwd); | 174 worker_thread_, factory_, content_name, component, ice_ufrag, ice_pwd); |
173 } | 175 } |
174 | 176 |
175 private: | 177 private: |
176 rtc::Thread* worker_thread_; | 178 rtc::Thread* worker_thread_; |
177 rtc::PacketSocketFactory* factory_; | 179 rtc::PacketSocketFactory* factory_; |
178 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; | 180 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; |
179 ServerAddresses stun_servers_; | 181 ServerAddresses stun_servers_; |
180 std::vector<RelayServerConfig> turn_servers_; | 182 std::vector<RelayServerConfig> turn_servers_; |
181 }; | 183 }; |
182 | 184 |
183 } // namespace cricket | 185 } // namespace cricket |
184 | 186 |
185 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ | 187 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ |
OLD | NEW |