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

Unified Diff: net/quic/reliable_quic_stream.cc

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/reliable_quic_stream.cc
diff --git a/net/quic/reliable_quic_stream.cc b/net/quic/reliable_quic_stream.cc
index 6a82cce31dae7b0c981cc391c7e1e6d63c513599..0ed990e311de4ad3a04439b0fd8b990a36fcc663 100644
--- a/net/quic/reliable_quic_stream.cc
+++ b/net/quic/reliable_quic_stream.cc
@@ -98,12 +98,12 @@ void ReliableQuicStream::Close(QuicRstStreamErrorCode error) {
session()->SendRstStream(id(), error);
}
-int ReliableQuicStream::Readv(const struct iovec* iov, int iov_len) {
+int ReliableQuicStream::Readv(const struct iovec* iov, size_t iov_len) {
if (headers_decompressed_ && decompressed_headers_.empty()) {
return sequencer_.Readv(iov, iov_len);
}
size_t bytes_consumed = 0;
- int iov_index = 0;
+ size_t iov_index = 0;
while (iov_index < iov_len &&
decompressed_headers_.length() > bytes_consumed) {
int bytes_to_read = min(iov[iov_index].iov_len,
@@ -118,7 +118,7 @@ int ReliableQuicStream::Readv(const struct iovec* iov, int iov_len) {
return bytes_consumed;
}
-int ReliableQuicStream::GetReadableRegions(iovec* iov, int iov_len) {
+int ReliableQuicStream::GetReadableRegions(iovec* iov, size_t iov_len) {
if (headers_decompressed_ && decompressed_headers_.empty()) {
return sequencer_.GetReadableRegions(iov, iov_len);
}

Powered by Google App Engine
This is Rietveld 408576698