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

Side by Side Diff: webrtc/base/win32socketserver.cc

Issue 1835053002: Change default timestamp to 64 bits in all webrtc directories. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO for timestamp. 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/win32socketserver.h ('k') | webrtc/libjingle/xmpp/pingtask.h » ('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 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 // Ignore events if we're already closed. 620 // Ignore events if we're already closed.
621 if (socket != socket_) 621 if (socket != socket_)
622 return; 622 return;
623 623
624 error_ = error; 624 error_ = error;
625 switch (event) { 625 switch (event) {
626 case FD_CONNECT: 626 case FD_CONNECT:
627 if (error != ERROR_SUCCESS) { 627 if (error != ERROR_SUCCESS) {
628 ReportWSAError("WSAAsync:connect notify", error, addr_); 628 ReportWSAError("WSAAsync:connect notify", error, addr_);
629 #if !defined(NDEBUG) 629 #if !defined(NDEBUG)
630 int32_t duration = TimeSince(connect_time_); 630 int64_t duration = TimeSince(connect_time_);
631 LOG(LS_INFO) << "WSAAsync:connect error (" << duration 631 LOG(LS_INFO) << "WSAAsync:connect error (" << duration
632 << " ms), faking close"; 632 << " ms), faking close";
633 #endif 633 #endif
634 state_ = CS_CLOSED; 634 state_ = CS_CLOSED;
635 // If you get an error connecting, close doesn't really do anything 635 // If you get an error connecting, close doesn't really do anything
636 // and it certainly doesn't send back any close notification, but 636 // and it certainly doesn't send back any close notification, but
637 // we really only maintain a few states, so it is easiest to get 637 // we really only maintain a few states, so it is easiest to get
638 // back into a known state by pretending that a close happened, even 638 // back into a known state by pretending that a close happened, even
639 // though the connect event never did occur. 639 // though the connect event never did occur.
640 SignalCloseEvent(this, error); 640 SignalCloseEvent(this, error);
641 } else { 641 } else {
642 #if !defined(NDEBUG) 642 #if !defined(NDEBUG)
643 int32_t duration = TimeSince(connect_time_); 643 int64_t duration = TimeSince(connect_time_);
644 LOG(LS_INFO) << "WSAAsync:connect (" << duration << " ms)"; 644 LOG(LS_INFO) << "WSAAsync:connect (" << duration << " ms)";
645 #endif 645 #endif
646 state_ = CS_CONNECTED; 646 state_ = CS_CONNECTED;
647 SignalConnectEvent(this); 647 SignalConnectEvent(this);
648 } 648 }
649 break; 649 break;
650 650
651 case FD_ACCEPT: 651 case FD_ACCEPT:
652 case FD_READ: 652 case FD_READ:
653 if (error != ERROR_SUCCESS) { 653 if (error != ERROR_SUCCESS) {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 bool handled = false; 845 bool handled = false;
846 if (wm == s_wm_wakeup_id || (wm == WM_TIMER && wp == 1)) { 846 if (wm == s_wm_wakeup_id || (wm == WM_TIMER && wp == 1)) {
847 ss_->Pump(); 847 ss_->Pump();
848 lr = 0; 848 lr = 0;
849 handled = true; 849 handled = true;
850 } 850 }
851 return handled; 851 return handled;
852 } 852 }
853 853
854 } // namespace rtc 854 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/win32socketserver.h ('k') | webrtc/libjingle/xmpp/pingtask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698