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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/net.gypi ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_iovector.h
diff --git a/net/quic/core/quic_iovector.h b/net/quic/core/quic_iovector.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee1fe60741146faa0d89abf61656c4f3a00c3405
--- /dev/null
+++ b/net/quic/core/quic_iovector.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_QUIC_IOVECTOR_H_
+#define NET_QUIC_QUIC_IOVECTOR_H_
+
+#include <stddef.h>
+
+#include "net/base/iovec.h"
+#include "net/base/net_export.h"
+
+namespace net {
+
+// Convenience wrapper to wrap an iovec array and the total length, which must
+// be less than or equal to the actual total length of the iovecs.
+struct NET_EXPORT_PRIVATE QuicIOVector {
+ QuicIOVector(const struct iovec* iov, int iov_count, size_t total_length)
+ : iov(iov), iov_count(iov_count), total_length(total_length) {}
+
+ const struct iovec* iov;
+ const int iov_count;
+ const size_t total_length;
+};
+
+} // namespace net
+
+#endif // NET_QUIC_QUIC_IOVECTOR_H_
« 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