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

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

Issue 2444793003: Let receiving() and SignalReceivingState be part of rtc::PacketTransportInterface. (Closed)
Patch Set: Fix comment for receiving(). Created 4 years, 1 month 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
« no previous file with comments | « webrtc/p2p/base/packettransportinterface.h ('k') | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 const std::string& transport_name() const { return transport_name_; } 70 const std::string& transport_name() const { return transport_name_; }
71 int component() const { return component_; } 71 int component() const { return component_; }
72 const std::string debug_name() const override { 72 const std::string debug_name() const override {
73 return transport_name() + " " + std::to_string(component()); 73 return transport_name() + " " + std::to_string(component());
74 } 74 }
75 75
76 // Returns the states of this channel. Each time one of these states changes, 76 // Returns the states of this channel. Each time one of these states changes,
77 // a signal is raised. These states are aggregated by the TransportManager. 77 // a signal is raised. These states are aggregated by the TransportManager.
78 bool writable() const override { return writable_; } 78 bool writable() const override { return writable_; }
79 bool receiving() const { return receiving_; } 79 bool receiving() const override { return receiving_; }
80 DtlsTransportState dtls_state() const { return dtls_state_; } 80 DtlsTransportState dtls_state() const { return dtls_state_; }
81 sigslot::signal1<TransportChannel*> SignalReceivingState;
82 // Emitted whenever DTLS-SRTP is setup which will require setting up a new 81 // Emitted whenever DTLS-SRTP is setup which will require setting up a new
83 // SRTP context. 82 // SRTP context.
84 sigslot::signal2<TransportChannel*, DtlsTransportState> SignalDtlsState; 83 sigslot::signal2<TransportChannel*, DtlsTransportState> SignalDtlsState;
85 84
86 // Returns the current stats for this connection. 85 // Returns the current stats for this connection.
87 virtual bool GetStats(ConnectionInfos* infos) = 0; 86 virtual bool GetStats(ConnectionInfos* infos) = 0;
88 87
89 // Is DTLS active? 88 // Is DTLS active?
90 virtual bool IsDtlsActive() const = 0; 89 virtual bool IsDtlsActive() const = 0;
91 90
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 bool writable_; 161 bool writable_;
163 bool receiving_; 162 bool receiving_;
164 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 163 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
165 164
166 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 165 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
167 }; 166 };
168 167
169 } // namespace cricket 168 } // namespace cricket
170 169
171 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 170 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/packettransportinterface.h ('k') | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698