OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 int16_t local_network_id, | 436 int16_t local_network_id, |
437 const rtc::SocketAddress& remote_address, | 437 const rtc::SocketAddress& remote_address, |
438 int16_t remote_network_id) { | 438 int16_t remote_network_id) { |
439 Candidate local_candidate(0, "udp", local_address, 0u, "", "", "local", 0, | 439 Candidate local_candidate(0, "udp", local_address, 0u, "", "", "local", 0, |
440 "foundation", local_network_id, 0); | 440 "foundation", local_network_id, 0); |
441 Candidate remote_candidate(0, "udp", remote_address, 0u, "", "", "local", 0, | 441 Candidate remote_candidate(0, "udp", remote_address, 0u, "", "", "local", 0, |
442 "foundation", remote_network_id, 0); | 442 "foundation", remote_network_id, 0); |
443 return new FakeCandidatePair(local_candidate, remote_candidate); | 443 return new FakeCandidatePair(local_candidate, remote_candidate); |
444 } | 444 } |
445 | 445 |
| 446 void OnDestroyTransport(const std::string& transport_name, int component) { |
| 447 DestroyTransportChannel(transport_name, component); |
| 448 } |
| 449 |
446 protected: | 450 protected: |
447 // The ICE channel is never actually used by TransportController directly, | 451 // The ICE channel is never actually used by TransportController directly, |
448 // since (currently) the DTLS channel pretends to be both ICE + DTLS. This | 452 // since (currently) the DTLS channel pretends to be both ICE + DTLS. This |
449 // will change when we get rid of TransportChannelImpl. | 453 // will change when we get rid of TransportChannelImpl. |
450 TransportChannelImpl* CreateIceTransportChannel_n( | 454 TransportChannelImpl* CreateIceTransportChannel_n( |
451 const std::string& transport_name, | 455 const std::string& transport_name, |
452 int component) override { | 456 int component) override { |
453 return nullptr; | 457 return nullptr; |
454 } | 458 } |
455 | 459 |
(...skipping 14 matching lines...) Expand all Loading... |
470 bool asymmetric = false; | 474 bool asymmetric = false; |
471 local->SetDestination(remote, asymmetric); | 475 local->SetDestination(remote, asymmetric); |
472 } | 476 } |
473 } | 477 } |
474 } | 478 } |
475 }; | 479 }; |
476 | 480 |
477 } // namespace cricket | 481 } // namespace cricket |
478 | 482 |
479 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 483 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
OLD | NEW |