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

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

Issue 2237853002: Remove obosolete SessionId setter/getter from PortAllocator. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove deprecation include again. Created 4 years, 4 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 writable_(false), 59 writable_(false),
60 receiving_(false) {} 60 receiving_(false) {}
61 virtual ~TransportChannel() {} 61 virtual ~TransportChannel() {}
62 62
63 // TODO(guoweis) - Make this pure virtual once all subclasses of 63 // TODO(guoweis) - Make this pure virtual once all subclasses of
64 // TransportChannel have this defined. 64 // TransportChannel have this defined.
65 virtual TransportChannelState GetState() const { 65 virtual TransportChannelState GetState() const {
66 return TransportChannelState::STATE_CONNECTING; 66 return TransportChannelState::STATE_CONNECTING;
67 } 67 }
68 68
69 // TODO(mallinath) - Remove this API, as it's no longer useful.
70 // Returns the session id of this channel.
71 virtual const std::string SessionId() const { return std::string(); }
72
73 const std::string& transport_name() const { return transport_name_; } 69 const std::string& transport_name() const { return transport_name_; }
74 int component() const { return component_; } 70 int component() const { return component_; }
75 71
76 // Returns the states of this channel. Each time one of these states changes, 72 // 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. 73 // a signal is raised. These states are aggregated by the TransportManager.
78 bool writable() const { return writable_; } 74 bool writable() const { return writable_; }
79 bool receiving() const { return receiving_; } 75 bool receiving() const { return receiving_; }
80 DtlsTransportState dtls_state() const { return dtls_state_; } 76 DtlsTransportState dtls_state() const { return dtls_state_; }
81 sigslot::signal1<TransportChannel*> SignalWritableState; 77 sigslot::signal1<TransportChannel*> SignalWritableState;
82 // Emitted when the TransportChannel's ability to send has changed. 78 // Emitted when the TransportChannel's ability to send has changed.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool writable_; 184 bool writable_;
189 bool receiving_; 185 bool receiving_;
190 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 186 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
191 187
192 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 188 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
193 }; 189 };
194 190
195 } // namespace cricket 191 } // namespace cricket
196 192
197 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 193 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/portallocator_unittest.cc ('k') | webrtc/p2p/client/basicportallocator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698