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

Unified Diff: net/quic/quic_buffered_packet_store.h

Issue 2104633002: Landing recent QUIC changes until 6/24/2016 14:00 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_buffered_packet_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_buffered_packet_store.h
diff --git a/net/quic/quic_buffered_packet_store.h b/net/quic/quic_buffered_packet_store.h
index a86a498cb32aca6f162fcb9642157cb782193411..67220fb3bdc5d4be5dc1a9ea173eafae436d7793 100644
--- a/net/quic/quic_buffered_packet_store.h
+++ b/net/quic/quic_buffered_packet_store.h
@@ -32,7 +32,7 @@ class NET_EXPORT_PRIVATE QuicBufferedPacketStore {
// A packets with client/server address.
struct NET_EXPORT_PRIVATE BufferedPacket {
- BufferedPacket(std::unique_ptr<QuicEncryptedPacket> packet,
+ BufferedPacket(std::unique_ptr<QuicReceivedPacket> packet,
IPEndPoint server_address,
IPEndPoint client_address);
BufferedPacket(BufferedPacket&& other);
@@ -41,7 +41,7 @@ class NET_EXPORT_PRIVATE QuicBufferedPacketStore {
~BufferedPacket();
- std::unique_ptr<QuicEncryptedPacket> packet;
+ std::unique_ptr<QuicReceivedPacket> packet;
IPEndPoint server_address;
IPEndPoint client_address;
};
@@ -72,7 +72,7 @@ class NET_EXPORT_PRIVATE QuicBufferedPacketStore {
};
QuicBufferedPacketStore(VisitorInterface* vistor,
- QuicClock* clock,
+ const QuicClock* clock,
QuicAlarmFactory* alarm_factory);
QuicBufferedPacketStore(const QuicBufferedPacketStore&) = delete;
@@ -83,10 +83,13 @@ class NET_EXPORT_PRIVATE QuicBufferedPacketStore {
// Adds a copy of packet into packet queue for given connection.
EnqueuePacketResult EnqueuePacket(QuicConnectionId connection_id,
- const QuicEncryptedPacket& packet,
+ const QuicReceivedPacket& packet,
IPEndPoint server_address,
IPEndPoint client_address);
+ // Returns true if there are any packets buffered for |connection_id|.
+ bool HasBufferedPackets(QuicConnectionId connection_id) const;
+
// Returns the list of buffered packets for |connection_id| and removes them
// from the store. Returns an empty list if no early arrived packets for this
// connection are present.
@@ -109,7 +112,7 @@ class NET_EXPORT_PRIVATE QuicBufferedPacketStore {
VisitorInterface* visitor_; // Unowned.
- QuicClock* clock_; // Unowned.
+ const QuicClock* clock_; // Unowned.
// This alarm fires every |connection_life_span_| to clean up
// packets staying in the store for too long.
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_buffered_packet_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698