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

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

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/tools/quic/quic_epoll_clock.h ('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 15 matching lines...) Expand all
26 namespace tools { 26 namespace tools {
27 27
28 class AckAlarm; 28 class AckAlarm;
29 class RetransmissionAlarm; 29 class RetransmissionAlarm;
30 class SendAlarm; 30 class SendAlarm;
31 class TimeoutAlarm; 31 class TimeoutAlarm;
32 32
33 class QuicEpollConnectionHelper : public QuicConnectionHelperInterface { 33 class QuicEpollConnectionHelper : public QuicConnectionHelperInterface {
34 public: 34 public:
35 explicit QuicEpollConnectionHelper(EpollServer* eps); 35 explicit QuicEpollConnectionHelper(EpollServer* eps);
36 virtual ~QuicEpollConnectionHelper(); 36 ~QuicEpollConnectionHelper() override;
37 37
38 // QuicEpollConnectionHelperInterface 38 // QuicEpollConnectionHelperInterface
39 virtual const QuicClock* GetClock() const override; 39 const QuicClock* GetClock() const override;
40 virtual QuicRandom* GetRandomGenerator() override; 40 QuicRandom* GetRandomGenerator() override;
41 virtual QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; 41 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override;
42 42
43 EpollServer* epoll_server() { return epoll_server_; } 43 EpollServer* epoll_server() { return epoll_server_; }
44 44
45 private: 45 private:
46 friend class QuicConnectionPeer; 46 friend class QuicConnectionPeer;
47 47
48 EpollServer* epoll_server_; // Not owned. 48 EpollServer* epoll_server_; // Not owned.
49 49
50 const QuicEpollClock clock_; 50 const QuicEpollClock clock_;
51 QuicRandom* random_generator_; 51 QuicRandom* random_generator_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(QuicEpollConnectionHelper); 53 DISALLOW_COPY_AND_ASSIGN(QuicEpollConnectionHelper);
54 }; 54 };
55 55
56 } // namespace tools 56 } // namespace tools
57 } // namespace net 57 } // namespace net
58 58
59 #endif // NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ 59 #endif // NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_epoll_clock.h ('k') | net/tools/quic/quic_epoll_connection_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698