OLD | NEW |
---|---|
(Empty) | |
1 /* | |
pthatcher1
2016/01/30 03:01:52
Can we put all of these files in a directory calle
mikescarlett
2016/02/03 17:41:01
Done.
| |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_P2P_BASE_QUICCONNECTIONHELPER_H_ | |
12 #define WEBRTC_P2P_BASE_QUICCONNECTIONHELPER_H_ | |
13 | |
14 #include "net/quic/crypto/quic_random.h" | |
15 #include "net/quic/quic_alarm.h" | |
16 #include "net/quic/quic_clock.h" | |
17 #include "net/quic/quic_connection.h" | |
18 | |
19 #include "webrtc/base/thread.h" | |
20 | |
21 namespace cricket { | |
22 | |
23 // Helper methods for QuicConnection timing and random number generation | |
24 class QuicConnectionHelper : public net::QuicConnectionHelperInterface { | |
25 public: | |
26 explicit QuicConnectionHelper(rtc::Thread* thread); | |
27 ~QuicConnectionHelper() override; | |
28 | |
29 // QuicConnectionHelperInterface | |
30 const net::QuicClock* GetClock() const override; | |
31 net::QuicRandom* GetRandomGenerator() override; | |
32 net::QuicAlarm* CreateAlarm(net::QuicAlarm::Delegate* delegate) override; | |
33 | |
34 private: | |
35 net::QuicClock clock_; | |
36 rtc::Thread* thread_; | |
37 }; | |
38 | |
39 } // namespace cricket | |
40 | |
41 #endif // WEBRTC_P2P_BASE_QUICCONNECTIONHELPER_H_ | |
OLD | NEW |