Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: net/tools/quic/quic_epoll_connection_helper.h

Issue 1572353002: QuicAlarms are now allocated out of an arena in QuicConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge recent changes. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_epoll_connection_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_epoll_connection_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698