OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // The Chrome-specific helper for QuicConnection which uses | 5 // The Chrome-specific helper for QuicConnection which uses |
6 // a TaskRunner for alarms, and uses a DatagramClientSocket for writing data. | 6 // a TaskRunner for alarms, and uses a DatagramClientSocket for writing data. |
7 | 7 |
8 #ifndef NET_QUIC_QUIC_CONNECTION_HELPER_H_ | 8 #ifndef NET_QUIC_QUIC_CONNECTION_HELPER_H_ |
9 #define NET_QUIC_QUIC_CONNECTION_HELPER_H_ | 9 #define NET_QUIC_QUIC_CONNECTION_HELPER_H_ |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 class NET_EXPORT_PRIVATE QuicConnectionHelper | 31 class NET_EXPORT_PRIVATE QuicConnectionHelper |
32 : public QuicConnectionHelperInterface { | 32 : public QuicConnectionHelperInterface { |
33 public: | 33 public: |
34 QuicConnectionHelper(base::TaskRunner* task_runner, | 34 QuicConnectionHelper(base::TaskRunner* task_runner, |
35 const QuicClock* clock, | 35 const QuicClock* clock, |
36 QuicRandom* random_generator); | 36 QuicRandom* random_generator); |
37 virtual ~QuicConnectionHelper(); | 37 virtual ~QuicConnectionHelper(); |
38 | 38 |
39 // QuicConnectionHelperInterface | 39 // QuicConnectionHelperInterface |
40 virtual const QuicClock* GetClock() const OVERRIDE; | 40 virtual const QuicClock* GetClock() const override; |
41 virtual QuicRandom* GetRandomGenerator() OVERRIDE; | 41 virtual QuicRandom* GetRandomGenerator() override; |
42 virtual QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) OVERRIDE; | 42 virtual QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; |
43 | 43 |
44 private: | 44 private: |
45 base::TaskRunner* task_runner_; | 45 base::TaskRunner* task_runner_; |
46 const QuicClock* clock_; | 46 const QuicClock* clock_; |
47 QuicRandom* random_generator_; | 47 QuicRandom* random_generator_; |
48 base::WeakPtrFactory<QuicConnectionHelper> weak_factory_; | 48 base::WeakPtrFactory<QuicConnectionHelper> weak_factory_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(QuicConnectionHelper); | 50 DISALLOW_COPY_AND_ASSIGN(QuicConnectionHelper); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace net | 53 } // namespace net |
54 | 54 |
55 #endif // NET_QUIC_QUIC_CONNECTION_HELPER_H_ | 55 #endif // NET_QUIC_QUIC_CONNECTION_HELPER_H_ |
OLD | NEW |