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

Unified Diff: net/quic/quic_connection.h

Issue 1779313002: Temporarily store the raw QUIC packet in QuicConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116152506
Patch Set: Created 4 years, 9 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/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index 2dda96ce3e5f7b73c70f81bf3b4851950448f528..57b9f9385edf9fdabe97543e2985e667d4a63a0a 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -661,6 +661,8 @@ class NET_EXPORT_PRIVATE QuicConnection
QuicConnectionHelperInterface* helper() { return helper_; }
+ base::StringPiece GetCurrentPacket();
+
protected:
// Send a packet to the peer, and takes ownership of the packet if the packet
// cannot be written immediately.
@@ -846,6 +848,9 @@ class NET_EXPORT_PRIVATE QuicConnection
// decrypted.
bool last_packet_decrypted_;
QuicByteCount last_size_; // Size of the last received packet.
+ // TODO(rch): remove this when b/27221014 is fixed.
+ const char* current_packet_data_; // UDP payload of packet currently being
+ // parsed or nullptr.
EncryptionLevel last_decrypted_packet_level_;
QuicPacketHeader last_header_;
QuicStopWaitingFrame last_stop_waiting_frame_;
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698