| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/quic_sent_packet_manager.h" | 5 #include "net/quic/quic_sent_packet_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 | 728 |
| 729 void QuicSentPacketManager::MaybeEnablePacing() { | 729 void QuicSentPacketManager::MaybeEnablePacing() { |
| 730 if (!FLAGS_enable_quic_pacing) { | 730 if (!FLAGS_enable_quic_pacing) { |
| 731 return; | 731 return; |
| 732 } | 732 } |
| 733 | 733 |
| 734 if (using_pacing_) { | 734 if (using_pacing_) { |
| 735 return; | 735 return; |
| 736 } | 736 } |
| 737 | 737 |
| 738 // Set up a pacing sender with a 5 millisecond alarm granularity. |
| 738 using_pacing_ = true; | 739 using_pacing_ = true; |
| 739 send_algorithm_.reset( | 740 send_algorithm_.reset( |
| 740 new PacingSender(send_algorithm_.release(), | 741 new PacingSender(send_algorithm_.release(), |
| 741 QuicTime::Delta::FromMicroseconds(1))); | 742 QuicTime::Delta::FromMilliseconds(5))); |
| 742 } | 743 } |
| 743 | 744 |
| 744 } // namespace net | 745 } // namespace net |
| OLD | NEW |