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

Unified Diff: net/quic/core/quic_buffered_packet_store.cc

Issue 2464683002: adds std:: to stl types (#049) (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | net/quic/core/quic_buffered_packet_store_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_buffered_packet_store.cc
diff --git a/net/quic/core/quic_buffered_packet_store.cc b/net/quic/core/quic_buffered_packet_store.cc
index 82e1584db1cb27c08f4af3317729a71793aabccc..c921c9eaead6a60af4c17333314548f80cf5be82 100644
--- a/net/quic/core/quic_buffered_packet_store.cc
+++ b/net/quic/core/quic_buffered_packet_store.cc
@@ -145,9 +145,9 @@ bool QuicBufferedPacketStore::HasChlosBuffered() const {
return !connections_with_chlo_.empty();
}
-list<BufferedPacket> QuicBufferedPacketStore::DeliverPackets(
+std::list<BufferedPacket> QuicBufferedPacketStore::DeliverPackets(
QuicConnectionId connection_id) {
- list<BufferedPacket> packets_to_deliver;
+ std::list<BufferedPacket> packets_to_deliver;
auto it = undecryptable_packets_.find(connection_id);
if (it != undecryptable_packets_.end()) {
packets_to_deliver = std::move(it->second.buffered_packets);
@@ -201,16 +201,17 @@ bool QuicBufferedPacketStore::ShouldBufferPacket(bool is_chlo) {
return is_store_full || reach_non_chlo_limit;
}
-list<BufferedPacket> QuicBufferedPacketStore::DeliverPacketsForNextConnection(
+std::list<BufferedPacket>
+QuicBufferedPacketStore::DeliverPacketsForNextConnection(
QuicConnectionId* connection_id) {
if (connections_with_chlo_.empty()) {
// Returns empty list if no CHLO has been buffered.
- return list<BufferedPacket>();
+ return std::list<BufferedPacket>();
}
*connection_id = connections_with_chlo_.front().first;
connections_with_chlo_.erase(connections_with_chlo_.begin());
- list<BufferedPacket> packets = DeliverPackets(*connection_id);
+ std::list<BufferedPacket> packets = DeliverPackets(*connection_id);
DCHECK(!packets.empty()) << "Try to deliver connectons without CHLO";
return packets;
}
« no previous file with comments | « no previous file | net/quic/core/quic_buffered_packet_store_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698