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_alarm.h" | 5 #include "net/quic/core/quic_alarm.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/quic_flags.h" | 8 #include "net/quic/core/quic_flags.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 QuicAlarm::QuicAlarm(QuicArenaScopedPtr<Delegate> delegate) | 12 QuicAlarm::QuicAlarm(QuicArenaScopedPtr<Delegate> delegate) |
13 : delegate_(std::move(delegate)), deadline_(QuicTime::Zero()) {} | 13 : delegate_(std::move(delegate)), deadline_(QuicTime::Zero()) {} |
14 | 14 |
15 QuicAlarm::~QuicAlarm() {} | 15 QuicAlarm::~QuicAlarm() {} |
16 | 16 |
17 void QuicAlarm::Set(QuicTime new_deadline) { | 17 void QuicAlarm::Set(QuicTime new_deadline) { |
18 DCHECK(!IsSet()); | 18 DCHECK(!IsSet()); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const QuicTime new_deadline = deadline_; | 72 const QuicTime new_deadline = deadline_; |
73 | 73 |
74 deadline_ = QuicTime::Zero(); | 74 deadline_ = QuicTime::Zero(); |
75 CancelImpl(); | 75 CancelImpl(); |
76 | 76 |
77 deadline_ = new_deadline; | 77 deadline_ = new_deadline; |
78 SetImpl(); | 78 SetImpl(); |
79 } | 79 } |
80 | 80 |
81 } // namespace net | 81 } // namespace net |
OLD | NEW |