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

Unified Diff: webrtc/voice_engine/channel.h

Issue 2453243003: Remove voe::Channel::StopReceive() and associated logic. (Closed)
Patch Set: comment Created 4 years, 2 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/video/video_quality_test.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel.h
diff --git a/webrtc/voice_engine/channel.h b/webrtc/voice_engine/channel.h
index 3b478cafb98c61d239791b18d9f88b8c6e630b23..c86820f2a5d933ab2d039274ff4f91cd7e64f8cd 100644
--- a/webrtc/voice_engine/channel.h
+++ b/webrtc/voice_engine/channel.h
@@ -88,7 +88,6 @@ class ChannelState {
bool input_file_playing = false;
bool playing = false;
bool sending = false;
- bool receiving = false;
};
ChannelState() {}
@@ -129,11 +128,6 @@ class ChannelState {
state_.sending = enable;
}
- void SetReceiving(bool enable) {
- rtc::CritScope lock(&lock_);
- state_.receiving = enable;
- }
-
private:
rtc::CriticalSection lock_;
State state_;
@@ -189,9 +183,7 @@ class Channel
int32_t StopPlayout();
int32_t StartSend();
int32_t StopSend();
- int32_t StartReceiving();
- int32_t StopReceiving();
-
+ void ResetDiscardedPacketCount();
int32_t RegisterVoiceEngineObserver(VoiceEngineObserver& observer);
int32_t DeRegisterVoiceEngineObserver();
@@ -393,7 +385,6 @@ class Channel
int32_t ChannelId() const { return _channelId; }
bool Playing() const { return channel_state_.Get().playing; }
bool Sending() const { return channel_state_.Get().sending; }
- bool Receiving() const { return channel_state_.Get().receiving; }
bool ExternalTransport() const {
rtc::CritScope cs(&_callbackCritSect);
return _externalTransport;
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698