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

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

Issue 1793553002: Using 64-bit timestamp in webrtc/p2p (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 if (flags != PF_SRTP_BYPASS && flags != 0) { 198 if (flags != PF_SRTP_BYPASS && flags != 0) {
199 return -1; 199 return -1;
200 } 200 }
201 201
202 PacketMessageData* packet = new PacketMessageData(data, len); 202 PacketMessageData* packet = new PacketMessageData(data, len);
203 if (async_) { 203 if (async_) {
204 rtc::Thread::Current()->Post(this, 0, packet); 204 rtc::Thread::Current()->Post(this, 0, packet);
205 } else { 205 } else {
206 rtc::Thread::Current()->Send(this, 0, packet); 206 rtc::Thread::Current()->Send(this, 0, packet);
207 } 207 }
208 rtc::SentPacket sent_packet(options.packet_id, rtc::Time()); 208 rtc::SentPacket sent_packet(options.packet_id, rtc::Time64());
honghaiz3 2016/03/14 22:35:59 SentPacket take int64_t as the second parameter, s
209 SignalSentPacket(this, sent_packet); 209 SignalSentPacket(this, sent_packet);
210 return static_cast<int>(len); 210 return static_cast<int>(len);
211 } 211 }
212 int SetOption(rtc::Socket::Option opt, int value) override { return true; } 212 int SetOption(rtc::Socket::Option opt, int value) override { return true; }
213 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } 213 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; }
214 int GetError() override { return 0; } 214 int GetError() override { return 0; }
215 215
216 void AddRemoteCandidate(const Candidate& candidate) override { 216 void AddRemoteCandidate(const Candidate& candidate) override {
217 remote_candidates_.push_back(candidate); 217 remote_candidates_.push_back(candidate);
218 } 218 }
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } 530 }
531 } 531 }
532 532
533 private: 533 private:
534 bool fail_create_channel_; 534 bool fail_create_channel_;
535 }; 535 };
536 536
537 } // namespace cricket 537 } // namespace cricket
538 538
539 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 539 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698