| 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 Google-specific helper for QuicConnection which uses | 5 // The Google-specific helper for QuicConnection which uses |
| 6 // EpollAlarm for alarms, and used an int fd_ for writing data. | 6 // EpollAlarm for alarms, and used an int fd_ for writing data. |
| 7 | 7 |
| 8 #ifndef NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ |
| 9 #define NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ | 9 #define NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 class QuicEpollConnectionHelper : public QuicConnectionHelperInterface { | 35 class QuicEpollConnectionHelper : public QuicConnectionHelperInterface { |
| 36 public: | 36 public: |
| 37 explicit QuicEpollConnectionHelper(EpollServer* eps); | 37 explicit QuicEpollConnectionHelper(EpollServer* eps); |
| 38 ~QuicEpollConnectionHelper() override; | 38 ~QuicEpollConnectionHelper() override; |
| 39 | 39 |
| 40 // QuicEpollConnectionHelperInterface | 40 // QuicEpollConnectionHelperInterface |
| 41 const QuicClock* GetClock() const override; | 41 const QuicClock* GetClock() const override; |
| 42 QuicRandom* GetRandomGenerator() override; | 42 QuicRandom* GetRandomGenerator() override; |
| 43 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; | 43 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; |
| 44 QuicArenaScopedPtr<QuicAlarm> CreateAlarm( |
| 45 QuicArenaScopedPtr<QuicAlarm::Delegate> delegate, |
| 46 QuicConnectionArena* arena) override; |
| 47 |
| 44 QuicBufferAllocator* GetBufferAllocator() override; | 48 QuicBufferAllocator* GetBufferAllocator() override; |
| 45 | 49 |
| 46 EpollServer* epoll_server() { return epoll_server_; } | 50 EpollServer* epoll_server() { return epoll_server_; } |
| 47 | 51 |
| 48 private: | 52 private: |
| 49 friend class QuicConnectionPeer; | 53 friend class QuicConnectionPeer; |
| 50 | 54 |
| 51 EpollServer* epoll_server_; // Not owned. | 55 EpollServer* epoll_server_; // Not owned. |
| 52 | 56 |
| 53 const QuicEpollClock clock_; | 57 const QuicEpollClock clock_; |
| 54 QuicRandom* random_generator_; | 58 QuicRandom* random_generator_; |
| 55 SimpleBufferAllocator buffer_allocator_; | 59 SimpleBufferAllocator buffer_allocator_; |
| 56 | 60 |
| 57 DISALLOW_COPY_AND_ASSIGN(QuicEpollConnectionHelper); | 61 DISALLOW_COPY_AND_ASSIGN(QuicEpollConnectionHelper); |
| 58 }; | 62 }; |
| 59 | 63 |
| 60 } // namespace tools | 64 } // namespace tools |
| 61 } // namespace net | 65 } // namespace net |
| 62 | 66 |
| 63 #endif // NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ | 67 #endif // NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ |
| OLD | NEW |