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

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

Issue 1923213002: Rename rtc::Time64 --> rtc::TimeMillis. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Clarify TODO comment. Created 4 years, 7 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 | « webrtc/base/timeutils_unittest.cc ('k') | webrtc/p2p/base/p2ptransportchannel.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 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 if (flags != PF_SRTP_BYPASS && flags != 0) { 200 if (flags != PF_SRTP_BYPASS && flags != 0) {
201 return -1; 201 return -1;
202 } 202 }
203 203
204 PacketMessageData* packet = new PacketMessageData(data, len); 204 PacketMessageData* packet = new PacketMessageData(data, len);
205 if (async_) { 205 if (async_) {
206 rtc::Thread::Current()->Post(this, 0, packet); 206 rtc::Thread::Current()->Post(this, 0, packet);
207 } else { 207 } else {
208 rtc::Thread::Current()->Send(this, 0, packet); 208 rtc::Thread::Current()->Send(this, 0, packet);
209 } 209 }
210 rtc::SentPacket sent_packet(options.packet_id, rtc::Time64()); 210 rtc::SentPacket sent_packet(options.packet_id, rtc::TimeMillis());
211 SignalSentPacket(this, sent_packet); 211 SignalSentPacket(this, sent_packet);
212 return static_cast<int>(len); 212 return static_cast<int>(len);
213 } 213 }
214 int SetOption(rtc::Socket::Option opt, int value) override { return true; } 214 int SetOption(rtc::Socket::Option opt, int value) override { return true; }
215 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; } 215 bool GetOption(rtc::Socket::Option opt, int* value) override { return true; }
216 int GetError() override { return 0; } 216 int GetError() override { return 0; }
217 217
218 void AddRemoteCandidate(const Candidate& candidate) override { 218 void AddRemoteCandidate(const Candidate& candidate) override {
219 remote_candidates_.push_back(candidate); 219 remote_candidates_.push_back(candidate);
220 } 220 }
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 } 572 }
573 } 573 }
574 574
575 private: 575 private:
576 bool fail_create_channel_; 576 bool fail_create_channel_;
577 }; 577 };
578 578
579 } // namespace cricket 579 } // namespace cricket
580 580
581 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 581 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/base/timeutils_unittest.cc ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698