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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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
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_connection_helper.h" 5 #include "net/tools/quic/quic_epoll_connection_helper.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <sys/socket.h> 8 #include <sys/socket.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "net/base/ip_endpoint.h" 12 #include "net/base/ip_endpoint.h"
13 #include "net/quic/crypto/quic_random.h" 13 #include "net/quic/core/crypto/quic_random.h"
14 #include "net/tools/epoll_server/epoll_server.h" 14 #include "net/tools/epoll_server/epoll_server.h"
15 #include "net/tools/quic/quic_socket_utils.h" 15 #include "net/tools/quic/quic_socket_utils.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 QuicEpollConnectionHelper::QuicEpollConnectionHelper(EpollServer* epoll_server, 19 QuicEpollConnectionHelper::QuicEpollConnectionHelper(EpollServer* epoll_server,
20 QuicAllocator type) 20 QuicAllocator type)
21 : clock_(epoll_server), 21 : clock_(epoll_server),
22 random_generator_(QuicRandom::GetInstance()), 22 random_generator_(QuicRandom::GetInstance()),
23 allocator_type_(type) {} 23 allocator_type_(type) {}
(...skipping 11 matching lines...) Expand all
35 QuicBufferAllocator* QuicEpollConnectionHelper::GetBufferAllocator() { 35 QuicBufferAllocator* QuicEpollConnectionHelper::GetBufferAllocator() {
36 if (allocator_type_ == QuicAllocator::BUFFER_POOL) { 36 if (allocator_type_ == QuicAllocator::BUFFER_POOL) {
37 return &buffer_allocator_; 37 return &buffer_allocator_;
38 } else { 38 } else {
39 DCHECK(allocator_type_ == QuicAllocator::SIMPLE); 39 DCHECK(allocator_type_ == QuicAllocator::SIMPLE);
40 return &simple_buffer_allocator_; 40 return &simple_buffer_allocator_;
41 } 41 }
42 } 42 }
43 43
44 } // namespace net 44 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_epoll_connection_helper.h ('k') | net/tools/quic/quic_epoll_connection_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698