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

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

Issue 2637503003: More minor improvements to BaseChannel/transport code. (Closed)
Patch Set: Merge with master 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/webrtcsession.cc ('k') | webrtc/p2p/base/transportcontroller.cc » ('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 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Creates a channel if it doesn't exist. Otherwise, increments a reference 114 // Creates a channel if it doesn't exist. Otherwise, increments a reference
115 // count and returns an existing channel. 115 // count and returns an existing channel.
116 TransportChannel* CreateTransportChannel(const std::string& transport_name, 116 TransportChannel* CreateTransportChannel(const std::string& transport_name,
117 int component); 117 int component);
118 virtual TransportChannel* CreateTransportChannel_n( 118 virtual TransportChannel* CreateTransportChannel_n(
119 const std::string& transport_name, 119 const std::string& transport_name,
120 int component); 120 int component);
121 121
122 // Decrements a channel's reference count, and destroys the channel if 122 // Decrements a channel's reference count, and destroys the channel if
123 // nothing is referencing it. 123 // nothing is referencing it.
124 virtual void DestroyTransportChannel(const std::string& transport_name,
125 int component);
124 virtual void DestroyTransportChannel_n(const std::string& transport_name, 126 virtual void DestroyTransportChannel_n(const std::string& transport_name,
125 int component); 127 int component);
126 128
127 void use_quic() { quic_ = true; } 129 void use_quic() { quic_ = true; }
128 bool quic() const { return quic_; } 130 bool quic() const { return quic_; }
129 131
130 // TODO(deadbeef): Remove all for_testing methods! 132 // TODO(deadbeef): Remove all for_testing methods!
131 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing() 133 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing()
132 const { 134 const {
133 return certificate_; 135 return certificate_;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 bool quic_ = false; 269 bool quic_ = false;
268 270
269 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 271 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
270 272
271 RTC_DISALLOW_COPY_AND_ASSIGN(TransportController); 273 RTC_DISALLOW_COPY_AND_ASSIGN(TransportController);
272 }; 274 };
273 275
274 } // namespace cricket 276 } // namespace cricket
275 277
276 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ 278 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/api/webrtcsession.cc ('k') | webrtc/p2p/base/transportcontroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698