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

Side by Side Diff: net/base/iovec.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 | « no previous file | net/net.gypi » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef NET_BASE_IOVEC_H_ 5 #ifndef NET_BASE_IOVEC_H_
6 #define NET_BASE_IOVEC_H_ 6 #define NET_BASE_IOVEC_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "build/build_config.h"
11
10 #if defined(OS_POSIX) && !defined(OS_NACL) 12 #if defined(OS_POSIX) && !defined(OS_NACL)
11 #include <sys/uio.h> 13 #include <sys/uio.h>
12 #else 14 #else
13 /* Structure for scatter/gather I/O. */ 15 /* Structure for scatter/gather I/O. */
14 struct iovec { 16 struct iovec {
15 void* iov_base; /* Pointer to data. */ 17 void* iov_base; /* Pointer to data. */
16 size_t iov_len; /* Length of data. */ 18 size_t iov_len; /* Length of data. */
17 }; 19 };
18 #endif // defined(OS_POSIX) && !defined(OS_NACL) 20 #endif // defined(OS_POSIX) && !defined(OS_NACL)
19 21
20 #endif // NET_BASE_IOVEC_H_ 22 #endif // NET_BASE_IOVEC_H_
OLDNEW
« no previous file with comments | « no previous file | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698