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

Side by Side Diff: webrtc/p2p/client/fakeportallocator.h

Issue 1857453002: Do not stop a session unless the candidate of a writable connection belongs to the (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add variables to improve readability Created 4 years, 8 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/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | 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 2010 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2010 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 virtual void StopGettingPorts() { running_ = false; } 113 virtual void StopGettingPorts() { running_ = false; }
114 virtual bool IsGettingPorts() { return running_; } 114 virtual bool IsGettingPorts() { return running_; }
115 virtual void ClearGettingPorts() {} 115 virtual void ClearGettingPorts() {}
116 116
117 int port_config_count() { return port_config_count_; } 117 int port_config_count() { return port_config_count_; }
118 118
119 void AddPort(cricket::Port* port) { 119 void AddPort(cricket::Port* port) {
120 port->set_component(component_); 120 port->set_component(component_);
121 port->set_generation(0); 121 port->set_generation(generation());
122 port->SignalPortComplete.connect( 122 port->SignalPortComplete.connect(
123 this, &FakePortAllocatorSession::OnPortComplete); 123 this, &FakePortAllocatorSession::OnPortComplete);
124 port->PrepareAddress(); 124 port->PrepareAddress();
125 SignalPortReady(this, port); 125 SignalPortReady(this, port);
126 } 126 }
127 void OnPortComplete(cricket::Port* port) { 127 void OnPortComplete(cricket::Port* port) {
128 SignalCandidatesReady(this, port->Candidates()); 128 SignalCandidatesReady(this, port->Candidates());
129 SignalCandidatesAllocationDone(this); 129 SignalCandidatesAllocationDone(this);
130 } 130 }
131 131
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 rtc::Thread* worker_thread_; 178 rtc::Thread* worker_thread_;
179 rtc::PacketSocketFactory* factory_; 179 rtc::PacketSocketFactory* factory_;
180 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; 180 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_;
181 ServerAddresses stun_servers_; 181 ServerAddresses stun_servers_;
182 std::vector<RelayServerConfig> turn_servers_; 182 std::vector<RelayServerConfig> turn_servers_;
183 }; 183 };
184 184
185 } // namespace cricket 185 } // namespace cricket
186 186
187 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ 187 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698