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

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

Issue 2651673004: Add quic_map_util. (Closed)
Patch Set: 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/quic/test_tools/quic_session_peer.cc ('k') | net/tools/quic/quic_http_response_cache.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_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/stl_util.h"
11 #include "net/quic/core/crypto/quic_random.h" 10 #include "net/quic/core/crypto/quic_random.h"
12 #include "net/tools/epoll_server/epoll_server.h" 11 #include "net/tools/epoll_server/epoll_server.h"
13 #include "net/tools/quic/platform/impl/quic_socket_utils.h" 12 #include "net/tools/quic/platform/impl/quic_socket_utils.h"
14 13
15 namespace net { 14 namespace net {
16 15
17 QuicEpollConnectionHelper::QuicEpollConnectionHelper(EpollServer* epoll_server, 16 QuicEpollConnectionHelper::QuicEpollConnectionHelper(EpollServer* epoll_server,
18 QuicAllocator type) 17 QuicAllocator type)
19 : clock_(epoll_server), 18 : clock_(epoll_server),
20 random_generator_(QuicRandom::GetInstance()), 19 random_generator_(QuicRandom::GetInstance()),
(...skipping 12 matching lines...) Expand all
33 QuicBufferAllocator* QuicEpollConnectionHelper::GetBufferAllocator() { 32 QuicBufferAllocator* QuicEpollConnectionHelper::GetBufferAllocator() {
34 if (allocator_type_ == QuicAllocator::BUFFER_POOL) { 33 if (allocator_type_ == QuicAllocator::BUFFER_POOL) {
35 return &buffer_allocator_; 34 return &buffer_allocator_;
36 } else { 35 } else {
37 DCHECK(allocator_type_ == QuicAllocator::SIMPLE); 36 DCHECK(allocator_type_ == QuicAllocator::SIMPLE);
38 return &simple_buffer_allocator_; 37 return &simple_buffer_allocator_;
39 } 38 }
40 } 39 }
41 40
42 } // namespace net 41 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_session_peer.cc ('k') | net/tools/quic/quic_http_response_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698