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 #ifndef NET_QUIC_QUIC_ALARM_H_ | 5 #ifndef NET_QUIC_QUIC_ALARM_H_ |
6 #define NET_QUIC_QUIC_ALARM_H_ | 6 #define NET_QUIC_QUIC_ALARM_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
10 #include "net/quic/quic_time.h" | 11 #include "net/quic/quic_time.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 // Abstract class which represents an alarm which will go off at a | 15 // Abstract class which represents an alarm which will go off at a |
15 // scheduled time, and execute the |OnAlarm| method of the delegate. | 16 // scheduled time, and execute the |OnAlarm| method of the delegate. |
16 // An alarm may be cancelled, in which case it may or may not be | 17 // An alarm may be cancelled, in which case it may or may not be |
17 // removed from the underlying scheduling system, but in either case | 18 // removed from the underlying scheduling system, but in either case |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 private: | 74 private: |
74 scoped_ptr<Delegate> delegate_; | 75 scoped_ptr<Delegate> delegate_; |
75 QuicTime deadline_; | 76 QuicTime deadline_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(QuicAlarm); | 78 DISALLOW_COPY_AND_ASSIGN(QuicAlarm); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace net | 81 } // namespace net |
81 | 82 |
82 #endif // NET_QUIC_QUIC_ALARM_H_ | 83 #endif // NET_QUIC_QUIC_ALARM_H_ |
OLD | NEW |