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

Side by Side Diff: net/tools/quic/quic_epoll_alarm_factory.cc

Issue 2611613003: Add quic_logging (Closed)
Patch Set: fix failed test? Created 3 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/tools/quic/quic_dispatcher_test.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 #include "net/tools/quic/quic_epoll_alarm_factory.h" 5 #include "net/tools/quic/quic_epoll_alarm_factory.h"
6 6
7 #include "base/logging.h"
8 #include "net/tools/epoll_server/epoll_server.h" 7 #include "net/tools/epoll_server/epoll_server.h"
9 8
10 namespace net { 9 namespace net {
11 10
12 namespace { 11 namespace {
13 12
14 class QuicEpollAlarm : public QuicAlarm { 13 class QuicEpollAlarm : public QuicAlarm {
15 public: 14 public:
16 QuicEpollAlarm(EpollServer* epoll_server, 15 QuicEpollAlarm(EpollServer* epoll_server,
17 QuicArenaScopedPtr<Delegate> delegate) 16 QuicArenaScopedPtr<Delegate> delegate)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 QuicConnectionArena* arena) { 67 QuicConnectionArena* arena) {
69 if (arena != nullptr) { 68 if (arena != nullptr) {
70 return arena->New<QuicEpollAlarm>(epoll_server_, std::move(delegate)); 69 return arena->New<QuicEpollAlarm>(epoll_server_, std::move(delegate));
71 } else { 70 } else {
72 return QuicArenaScopedPtr<QuicAlarm>( 71 return QuicArenaScopedPtr<QuicAlarm>(
73 new QuicEpollAlarm(epoll_server_, std::move(delegate))); 72 new QuicEpollAlarm(epoll_server_, std::move(delegate)));
74 } 73 }
75 } 74 }
76 75
77 } // namespace net 76 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.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