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

Unified Diff: webrtc/p2p/base/transportcontroller.cc

Issue 2614263002: Remove BaseChannel's dependency on TransportController. (Closed)
Patch Set: Fix the channel_unittests 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/base/transportcontroller.cc
diff --git a/webrtc/p2p/base/transportcontroller.cc b/webrtc/p2p/base/transportcontroller.cc
index 4a3a00e10f0e2831e4eefcf6bd53d229086b0d84..80fe60c0cd48a1b9bd2f5398a30c79d068dd8464 100644
--- a/webrtc/p2p/base/transportcontroller.cc
+++ b/webrtc/p2p/base/transportcontroller.cc
@@ -227,6 +227,14 @@ void TransportController::SetMetricsObserver(
metrics_observer));
}
+TransportChannel* TransportController::CreateTransportChannel(
+ const std::string& transport_name,
+ int component) {
+ return network_thread_->Invoke<TransportChannel*>(
+ RTC_FROM_HERE, rtc::Bind(&TransportController::CreateTransportChannel_n,
+ this, transport_name, component));
+}
+
TransportChannel* TransportController::CreateTransportChannel_n(
const std::string& transport_name,
int component) {
@@ -288,6 +296,14 @@ TransportChannel* TransportController::CreateTransportChannel_n(
return dtls;
}
+void TransportController::DestroyTransportChannel(
+ const std::string& transport_name,
+ int component) {
+ network_thread_->Invoke<void>(
+ RTC_FROM_HERE, rtc::Bind(&TransportController::DestroyTransportChannel_n,
+ this, transport_name, component));
+}
+
void TransportController::DestroyTransportChannel_n(
const std::string& transport_name,
int component) {

Powered by Google App Engine
This is Rietveld 408576698