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

Unified Diff: webrtc/pc/channelmanager.h

Issue 1903393004: Added network thread to rtc::BaseChannel (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fix flakiness of WebRtcSessionTest.TestPacketOptionsAndOnPacketSent Created 4 years, 7 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
« no previous file with comments | « webrtc/pc/channel_unittest.cc ('k') | webrtc/pc/channelmanager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channelmanager.h
diff --git a/webrtc/pc/channelmanager.h b/webrtc/pc/channelmanager.h
index 72a2f056b5a4c0b6bb797f1a5792f575bb8a9ee3..1ecebf8cfaea8b51ee99e7da6eaa119a4465bf1f 100644
--- a/webrtc/pc/channelmanager.h
+++ b/webrtc/pc/channelmanager.h
@@ -42,20 +42,31 @@ class ChannelManager {
// ownership of these objects.
ChannelManager(MediaEngineInterface* me,
DataEngineInterface* dme,
- rtc::Thread* worker);
+ rtc::Thread* worker_and_network);
// Same as above, but gives an easier default DataEngine.
ChannelManager(MediaEngineInterface* me,
- rtc::Thread* worker);
+ rtc::Thread* worker,
+ rtc::Thread* network);
~ChannelManager();
// Accessors for the worker thread, allowing it to be set after construction,
// but before Init. set_worker_thread will return false if called after Init.
rtc::Thread* worker_thread() const { return worker_thread_; }
bool set_worker_thread(rtc::Thread* thread) {
- if (initialized_) return false;
+ if (initialized_) {
+ return false;
+ }
worker_thread_ = thread;
return true;
}
+ rtc::Thread* network_thread() const { return network_thread_; }
+ bool set_network_thread(rtc::Thread* thread) {
+ if (initialized_) {
+ return false;
+ }
+ network_thread_ = thread;
+ return true;
+ }
MediaEngineInterface* media_engine() { return media_engine_.get(); }
@@ -138,7 +149,8 @@ class ChannelManager {
void Construct(MediaEngineInterface* me,
DataEngineInterface* dme,
- rtc::Thread* worker_thread);
+ rtc::Thread* worker_thread,
+ rtc::Thread* network_thread);
bool InitMediaEngine_w();
void DestructorDeletes_w();
void Terminate_w();
@@ -167,6 +179,7 @@ class ChannelManager {
bool initialized_;
rtc::Thread* main_thread_;
rtc::Thread* worker_thread_;
+ rtc::Thread* network_thread_;
VoiceChannels voice_channels_;
VideoChannels video_channels_;
« no previous file with comments | « webrtc/pc/channel_unittest.cc ('k') | webrtc/pc/channelmanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698