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

Unified Diff: net/quic/quic_write_blocked_list.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_utils_chromium.h ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_write_blocked_list.h
diff --git a/net/quic/quic_write_blocked_list.h b/net/quic/quic_write_blocked_list.h
index 5e24b80612eb71c8d5b1584e3c0c7a5ab8555ff2..ad511877a660e38aff105ab0cb27ccc355c10f80 100644
--- a/net/quic/quic_write_blocked_list.h
+++ b/net/quic/quic_write_blocked_list.h
@@ -5,8 +5,12 @@
#ifndef NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_
#define NET_QUIC_QUIC_WRITE_BLOCKED_LIST_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <set>
+#include "base/macros.h"
#include "net/base/net_export.h"
#include "net/quic/quic_flags.h"
#include "net/quic/quic_protocol.h"
@@ -120,7 +124,7 @@ class NET_EXPORT_PRIVATE QuicWriteBlockedList {
// If this was the last data stream popped by PopFront, update the
// bytes remaining in its batch write.
bytes_left_for_batch_write_[last_priority_popped_] -=
- static_cast<int32>(bytes);
+ static_cast<int32_t>(bytes);
} else {
// If a batch write stream was set, it should only be preempted by the
// crypto or headers streams. Any higher priority data stream would
@@ -185,7 +189,7 @@ class NET_EXPORT_PRIVATE QuicWriteBlockedList {
// Set to kBatchWriteSize when we set a new batch_write_stream_id_ for a given
// priority. This is decremented with each write the stream does until it is
// done with its batch write.
- int32 bytes_left_for_batch_write_[kV3LowestPriority + 1];
+ int32_t bytes_left_for_batch_write_[kV3LowestPriority + 1];
// Tracks the last priority popped for UpdateBytesForStream.
SpdyPriority last_priority_popped_;
« no previous file with comments | « net/quic/quic_utils_chromium.h ('k') | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698