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

Unified Diff: net/tools/quic/quic_epoll_alarm_factory.h

Issue 1908103002: Landing Recent QUIC changes until 4/15/2016 17:20 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_epoll_alarm_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_epoll_alarm_factory.h
diff --git a/net/tools/quic/quic_epoll_alarm_factory.h b/net/tools/quic/quic_epoll_alarm_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b59ccc781ee109a5a103d5463d4f68bfecd7fa7
--- /dev/null
+++ b/net/tools/quic/quic_epoll_alarm_factory.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_QUIC_EPOLL_ALARM_FACTORY_H_
+#define NET_QUIC_QUIC_EPOLL_ALARM_FACTORY_H_
+
+#include "net/quic/quic_alarm.h"
+#include "net/quic/quic_alarm_factory.h"
+
+namespace net {
+
+class EpollServer;
+
+// Creates alarms that use the supplied EpollServer for timing and firing.
+class QuicEpollAlarmFactory : public QuicAlarmFactory {
+ public:
+ explicit QuicEpollAlarmFactory(EpollServer* epoll_server);
+ ~QuicEpollAlarmFactory() override;
+
+ // QuicAlarmFactory interface.
+ QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override;
+ QuicArenaScopedPtr<QuicAlarm> CreateAlarm(
+ QuicArenaScopedPtr<QuicAlarm::Delegate> delegate,
+ QuicConnectionArena* arena) override;
+
+ private:
+ EpollServer* epoll_server_; // Not owned.
+
+ DISALLOW_COPY_AND_ASSIGN(QuicEpollAlarmFactory);
+};
+
+} // namespace net
+
+#endif // NET_QUIC_QUIC_EPOLL_ALARM_FACTORY_H_
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_epoll_alarm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698