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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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_in_memory_cache.h ('k') | net/tools/quic/quic_packet_writer_wrapper.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // A class to read incoming QUIC packets from the UDP socket. 5 // A class to read incoming QUIC packets from the UDP socket.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_PACKET_READER_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_PACKET_READER_H_
8 #define NET_TOOLS_QUIC_QUIC_PACKET_READER_H_ 8 #define NET_TOOLS_QUIC_QUIC_PACKET_READER_H_
9 9
10 #include <netinet/in.h> 10 #include <netinet/in.h>
11 #include <sys/socket.h> 11 #include <sys/socket.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/macros.h"
14 #include "net/quic/quic_protocol.h" 14 #include "net/quic/quic_protocol.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 namespace tools { 18 namespace tools {
19 19
20 // Read in larger batches to minimize recvmmsg overhead. 20 // Read in larger batches to minimize recvmmsg overhead.
21 const int kNumPacketsPerReadMmsgCall = 16; 21 const int kNumPacketsPerReadMmsgCall = 16;
22 // Allocate space for in6_pktinfo as it's larger than in_pktinfo 22 // Allocate space for in6_pktinfo as it's larger than in_pktinfo
23 const int kSpaceForOverflowAndIp = 23 const int kSpaceForOverflowAndIp =
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // call on the packets. 69 // call on the packets.
70 struct sockaddr_storage raw_address_[kNumPacketsPerReadMmsgCall]; 70 struct sockaddr_storage raw_address_[kNumPacketsPerReadMmsgCall];
71 71
72 DISALLOW_COPY_AND_ASSIGN(QuicPacketReader); 72 DISALLOW_COPY_AND_ASSIGN(QuicPacketReader);
73 }; 73 };
74 74
75 } // namespace tools 75 } // namespace tools
76 } // namespace net 76 } // namespace net
77 77
78 #endif // NET_TOOLS_QUIC_QUIC_PACKET_READER_H_ 78 #endif // NET_TOOLS_QUIC_QUIC_PACKET_READER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_in_memory_cache.h ('k') | net/tools/quic/quic_packet_writer_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698