| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 virtual void StopGettingPorts() { running_ = false; } | 113 virtual void StopGettingPorts() { running_ = false; } |
| 114 virtual bool IsGettingPorts() { return running_; } | 114 virtual bool IsGettingPorts() { return running_; } |
| 115 virtual void ClearGettingPorts() {} | 115 virtual void ClearGettingPorts() {} |
| 116 | 116 |
| 117 int port_config_count() { return port_config_count_; } | 117 int port_config_count() { return port_config_count_; } |
| 118 | 118 |
| 119 void AddPort(cricket::Port* port) { | 119 void AddPort(cricket::Port* port) { |
| 120 port->set_component(component_); | 120 port->set_component(component_); |
| 121 port->set_generation(0); | 121 port->set_generation(generation()); |
| 122 port->SignalPortComplete.connect( | 122 port->SignalPortComplete.connect( |
| 123 this, &FakePortAllocatorSession::OnPortComplete); | 123 this, &FakePortAllocatorSession::OnPortComplete); |
| 124 port->PrepareAddress(); | 124 port->PrepareAddress(); |
| 125 SignalPortReady(this, port); | 125 SignalPortReady(this, port); |
| 126 } | 126 } |
| 127 void OnPortComplete(cricket::Port* port) { | 127 void OnPortComplete(cricket::Port* port) { |
| 128 SignalCandidatesReady(this, port->Candidates()); | 128 SignalCandidatesReady(this, port->Candidates()); |
| 129 SignalCandidatesAllocationDone(this); | 129 SignalCandidatesAllocationDone(this); |
| 130 } | 130 } |
| 131 | 131 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 rtc::Thread* worker_thread_; | 178 rtc::Thread* worker_thread_; |
| 179 rtc::PacketSocketFactory* factory_; | 179 rtc::PacketSocketFactory* factory_; |
| 180 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; | 180 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; |
| 181 ServerAddresses stun_servers_; | 181 ServerAddresses stun_servers_; |
| 182 std::vector<RelayServerConfig> turn_servers_; | 182 std::vector<RelayServerConfig> turn_servers_; |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace cricket | 185 } // namespace cricket |
| 186 | 186 |
| 187 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ | 187 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ |
| OLD | NEW |