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

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.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: No changes to const parameters. 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 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 if (flags != PF_SRTP_BYPASS && flags != 0) { 201 if (flags != PF_SRTP_BYPASS && flags != 0) {
202 return -1; 202 return -1;
203 } 203 }
204 204
205 PacketMessageData* packet = new PacketMessageData(data, len); 205 PacketMessageData* packet = new PacketMessageData(data, len);
206 if (async_) { 206 if (async_) {
207 rtc::Thread::Current()->Post(this, 0, packet); 207 rtc::Thread::Current()->Post(this, 0, packet);
208 } else { 208 } else {
209 rtc::Thread::Current()->Send(this, 0, packet); 209 rtc::Thread::Current()->Send(this, 0, packet);
210 } 210 }
211 rtc::SentPacket sent_packet(options.packet_id, rtc::Time());
212 SignalSentPacket(this, sent_packet);
211 return static_cast<int>(len); 213 return static_cast<int>(len);
212 } 214 }
213 int SetOption(rtc::Socket::Option opt, int value) override { return true; } 215 int SetOption(rtc::Socket::Option opt, int value) override { return true; }
214 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } 216 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; }
215 int GetError() override { return 0; } 217 int GetError() override { return 0; }
216 218
217 void AddRemoteCandidate(const Candidate& candidate) override { 219 void AddRemoteCandidate(const Candidate& candidate) override {
218 remote_candidates_.push_back(candidate); 220 remote_candidates_.push_back(candidate);
219 } 221 }
220 const Candidates& remote_candidates() const { return remote_candidates_; } 222 const Candidates& remote_candidates() const { return remote_candidates_; }
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 533 }
532 } 534 }
533 535
534 private: 536 private:
535 bool fail_create_channel_; 537 bool fail_create_channel_;
536 }; 538 };
537 539
538 } // namespace cricket 540 } // namespace cricket
539 541
540 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 542 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698