OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 |
11 #ifndef WEBRTC_P2P_QUIC_QUICCONNECTIONHELPER_H_ | 11 #ifndef WEBRTC_P2P_QUIC_QUICCONNECTIONHELPER_H_ |
12 #define WEBRTC_P2P_QUIC_QUICCONNECTIONHELPER_H_ | 12 #define WEBRTC_P2P_QUIC_QUICCONNECTIONHELPER_H_ |
13 | 13 |
14 #include "net/quic/crypto/quic_random.h" | 14 #include "net/quic/crypto/quic_random.h" |
15 #include "net/quic/quic_alarm.h" | 15 #include "net/quic/quic_alarm.h" |
16 #include "net/quic/quic_clock.h" | 16 #include "net/quic/quic_clock.h" |
17 #include "net/quic/quic_connection.h" | 17 #include "net/quic/quic_connection.h" |
18 #include "net/quic/quic_simple_buffer_allocator.h" | 18 #include "net/quic/quic_simple_buffer_allocator.h" |
19 #include "webrtc/rtc_base/thread.h" | 19 #include "webrtc/base/thread.h" |
20 | 20 |
21 namespace cricket { | 21 namespace cricket { |
22 | 22 |
23 // An alarm which will go off at a scheduled time, and execute the |OnAlarm| | 23 // An alarm which will go off at a scheduled time, and execute the |OnAlarm| |
24 // method of the delegate. | 24 // method of the delegate. |
25 class QuicAlarm : public net::QuicAlarm, public rtc::MessageHandler { | 25 class QuicAlarm : public net::QuicAlarm, public rtc::MessageHandler { |
26 public: | 26 public: |
27 QuicAlarm(const net::QuicClock* clock, | 27 QuicAlarm(const net::QuicClock* clock, |
28 rtc::Thread* thread, | 28 rtc::Thread* thread, |
29 net::QuicArenaScopedPtr<net::QuicAlarm::Delegate> delegate); | 29 net::QuicArenaScopedPtr<net::QuicAlarm::Delegate> delegate); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 private: | 64 private: |
65 net::QuicClock clock_; | 65 net::QuicClock clock_; |
66 net::SimpleBufferAllocator buffer_allocator_; | 66 net::SimpleBufferAllocator buffer_allocator_; |
67 rtc::Thread* thread_; | 67 rtc::Thread* thread_; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace cricket | 70 } // namespace cricket |
71 | 71 |
72 #endif // WEBRTC_P2P_QUIC_QUICCONNECTIONHELPER_H_ | 72 #endif // WEBRTC_P2P_QUIC_QUICCONNECTIONHELPER_H_ |
OLD | NEW |