Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 2614263002: Remove BaseChannel's dependency on TransportController. (Closed)
Patch Set: cr comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 DestroyRtcpTransport(const std::string& transport_name) {
447 DestroyTransportChannel_n(transport_name,
448 cricket::ICE_CANDIDATE_COMPONENT_RTCP);
449 }
450
446 protected: 451 protected:
447 // The ICE channel is never actually used by TransportController directly, 452 // The ICE channel is never actually used by TransportController directly,
448 // since (currently) the DTLS channel pretends to be both ICE + DTLS. This 453 // since (currently) the DTLS channel pretends to be both ICE + DTLS. This
449 // will change when we get rid of TransportChannelImpl. 454 // will change when we get rid of TransportChannelImpl.
450 TransportChannelImpl* CreateIceTransportChannel_n( 455 TransportChannelImpl* CreateIceTransportChannel_n(
451 const std::string& transport_name, 456 const std::string& transport_name,
452 int component) override { 457 int component) override {
453 return nullptr; 458 return nullptr;
454 } 459 }
455 460
(...skipping 14 matching lines...) Expand all
470 bool asymmetric = false; 475 bool asymmetric = false;
471 local->SetDestination(remote, asymmetric); 476 local->SetDestination(remote, asymmetric);
472 } 477 }
473 } 478 }
474 } 479 }
475 }; 480 };
476 481
477 } // namespace cricket 482 } // namespace cricket
478 483
479 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 484 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698