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

Side by Side Diff: p2p/client/basicportallocator.h

Issue 3018483002: Remove BasicPortAllocator::EnableProtocol. (Closed)
Patch Set: Rebase onto master Created 3 years, 3 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 | « p2p/base/portallocator.h ('k') | p2p/client/basicportallocator.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 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 uint32_t* flags); 322 uint32_t* flags);
323 323
324 // Starts and stops the sequence. When started, it will continue allocating 324 // Starts and stops the sequence. When started, it will continue allocating
325 // new ports on its own timed schedule. 325 // new ports on its own timed schedule.
326 void Start(); 326 void Start();
327 void Stop(); 327 void Stop();
328 328
329 // MessageHandler 329 // MessageHandler
330 void OnMessage(rtc::Message* msg); 330 void OnMessage(rtc::Message* msg);
331 331
332 void EnableProtocol(ProtocolType proto);
333 bool ProtocolEnabled(ProtocolType proto) const;
334
335 // Signal from AllocationSequence, when it's done with allocating ports. 332 // Signal from AllocationSequence, when it's done with allocating ports.
336 // This signal is useful, when port allocation fails which doesn't result 333 // This signal is useful, when port allocation fails which doesn't result
337 // in any candidates. Using this signal BasicPortAllocatorSession can send 334 // in any candidates. Using this signal BasicPortAllocatorSession can send
338 // its candidate discovery conclusion signal. Without this signal, 335 // its candidate discovery conclusion signal. Without this signal,
339 // BasicPortAllocatorSession doesn't have any event to trigger signal. This 336 // BasicPortAllocatorSession doesn't have any event to trigger signal. This
340 // can also be achieved by starting timer in BPAS. 337 // can also be achieved by starting timer in BPAS.
341 sigslot::signal1<AllocationSequence*> SignalPortAllocationComplete; 338 sigslot::signal1<AllocationSequence*> SignalPortAllocationComplete;
342 339
343 protected: 340 protected:
344 // For testing. 341 // For testing.
(...skipping 29 matching lines...) Expand all
374 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; 371 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_;
375 // There will be only one udp port per AllocationSequence. 372 // There will be only one udp port per AllocationSequence.
376 UDPPort* udp_port_; 373 UDPPort* udp_port_;
377 std::vector<TurnPort*> turn_ports_; 374 std::vector<TurnPort*> turn_ports_;
378 int phase_; 375 int phase_;
379 }; 376 };
380 377
381 } // namespace cricket 378 } // namespace cricket
382 379
383 #endif // P2P_CLIENT_BASICPORTALLOCATOR_H_ 380 #endif // P2P_CLIENT_BASICPORTALLOCATOR_H_
OLDNEW
« no previous file with comments | « p2p/base/portallocator.h ('k') | p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698