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

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: Add missing updated_options 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 bool ParseStunUsername(const StunMessage* stun_msg, 268 bool ParseStunUsername(const StunMessage* stun_msg,
269 std::string* local_username, 269 std::string* local_username,
270 std::string* remote_username) const; 270 std::string* remote_username) const;
271 void CreateStunUsername(const std::string& remote_username, 271 void CreateStunUsername(const std::string& remote_username,
272 std::string* stun_username_attr_str) const; 272 std::string* stun_username_attr_str) const;
273 273
274 bool MaybeIceRoleConflict(const rtc::SocketAddress& addr, 274 bool MaybeIceRoleConflict(const rtc::SocketAddress& addr,
275 IceMessage* stun_msg, 275 IceMessage* stun_msg,
276 const std::string& remote_ufrag); 276 const std::string& remote_ufrag);
277 277
278 // Called when a packet has been sent to the socket.
279 void OnSentPacket(const rtc::SentPacket& sent_packet);
280
278 // Called when the socket is currently able to send. 281 // Called when the socket is currently able to send.
279 void OnReadyToSend(); 282 void OnReadyToSend();
280 283
281 // Called when the Connection discovers a local peer reflexive candidate. 284 // Called when the Connection discovers a local peer reflexive candidate.
282 // Returns the index of the new local candidate. 285 // Returns the index of the new local candidate.
283 size_t AddPrflxCandidate(const Candidate& local); 286 size_t AddPrflxCandidate(const Candidate& local);
284 287
285 void set_candidate_filter(uint32_t candidate_filter) { 288 void set_candidate_filter(uint32_t candidate_filter) {
286 candidate_filter_ = candidate_filter; 289 candidate_filter_ = candidate_filter;
287 } 290 }
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 const rtc::PacketOptions& options); 637 const rtc::PacketOptions& options);
635 virtual int GetError() { return error_; } 638 virtual int GetError() { return error_; }
636 639
637 private: 640 private:
638 int error_; 641 int error_;
639 }; 642 };
640 643
641 } // namespace cricket 644 } // namespace cricket
642 645
643 #endif // WEBRTC_P2P_BASE_PORT_H_ 646 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698