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

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

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 2 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 // covers. 460 // covers.
461 virtual int Send(const void* data, size_t size, 461 virtual int Send(const void* data, size_t size,
462 const rtc::PacketOptions& options) = 0; 462 const rtc::PacketOptions& options) = 0;
463 463
464 // Error if Send() returns < 0 464 // Error if Send() returns < 0
465 virtual int GetError() = 0; 465 virtual int GetError() = 0;
466 466
467 sigslot::signal4<Connection*, const char*, size_t, const rtc::PacketTime&> 467 sigslot::signal4<Connection*, const char*, size_t, const rtc::PacketTime&>
468 SignalReadPacket; 468 SignalReadPacket;
469 469
470 sigslot::signal2<Connection*, const rtc::SentPacket&> SignalSentPacket;
pthatcher1 2015/09/25 23:24:58 I don't see this actually wired up to anything. D
stefan-webrtc 2015/10/02 13:29:12 I dropped the ball here. I think it should be prop
471
470 sigslot::signal1<Connection*> SignalReadyToSend; 472 sigslot::signal1<Connection*> SignalReadyToSend;
471 473
472 // Called when a packet is received on this connection. 474 // Called when a packet is received on this connection.
473 void OnReadPacket(const char* data, size_t size, 475 void OnReadPacket(const char* data, size_t size,
474 const rtc::PacketTime& packet_time); 476 const rtc::PacketTime& packet_time);
475 477
476 // Called when the socket is currently able to send. 478 // Called when the socket is currently able to send.
477 void OnReadyToSend(); 479 void OnReadyToSend();
478 480
479 // Called when a connection is determined to be no longer useful to us. We 481 // Called when a connection is determined to be no longer useful to us. We
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 const rtc::PacketOptions& options); 631 const rtc::PacketOptions& options);
630 virtual int GetError() { return error_; } 632 virtual int GetError() { return error_; }
631 633
632 private: 634 private:
633 int error_; 635 int error_;
634 }; 636 };
635 637
636 } // namespace cricket 638 } // namespace cricket
637 639
638 #endif // WEBRTC_P2P_BASE_PORT_H_ 640 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698