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

Side by Side Diff: net/quic/core/quic_iovector.h

Issue 2512063003: Move QuicIoVector into its own header file. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month 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/net.gypi ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_QUIC_IOVECTOR_H_
6 #define NET_QUIC_QUIC_IOVECTOR_H_
7
8 #include <stddef.h>
9
10 #include "net/base/iovec.h"
11 #include "net/base/net_export.h"
12
13 namespace net {
14
15 // Convenience wrapper to wrap an iovec array and the total length, which must
16 // be less than or equal to the actual total length of the iovecs.
17 struct NET_EXPORT_PRIVATE QuicIOVector {
18 QuicIOVector(const struct iovec* iov, int iov_count, size_t total_length)
19 : iov(iov), iov_count(iov_count), total_length(total_length) {}
20
21 const struct iovec* iov;
22 const int iov_count;
23 const size_t total_length;
24 };
25
26 } // namespace net
27
28 #endif // NET_QUIC_QUIC_IOVECTOR_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698