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

Unified Diff: net/quic/quic_connection.h

Issue 1660533002: Landing Recent QUIC changes until 01/26/2016 18:14 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/quic_client_session_base.h ('k') | 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 f82d04af19cf45052788377b69ce58b087916bfa..85a8ee4ea3b29b974e9da595d76a866835436ef4 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -132,6 +132,11 @@ class NET_EXPORT_PRIVATE QuicConnectionVisitorInterface {
// Called when the connection receives a packet from a migrated client.
virtual void OnConnectionMigration() = 0;
+ // Called after OnStreamFrame, OnRstStream, OnGoAway, OnWindowUpdateFrame,
+ // OnBlockedFrame, and OnCanWrite to allow post-processing once the work has
+ // been done.
+ virtual void PostProcessAfterData() = 0;
+
// Called to ask if the visitor wants to schedule write resumption as it both
// has pending data to write, and is able to write (e.g. based on flow control
// limits).
@@ -684,6 +689,15 @@ class NET_EXPORT_PRIVATE QuicConnection
return migrating_peer_ip_;
}
+ // Returns the current per-packet options for the connection.
+ PerPacketOptions* per_packet_options() { return per_packet_options_; }
+ // Sets the current per-packet options for the connection. The QuicConnection
+ // does not take ownership of |options|; |options| must live for as long as
+ // the QuicConnection is in use.
+ void set_per_packet_options(PerPacketOptions* options) {
+ per_packet_options_ = options;
+ }
+
private:
friend class test::QuicConnectionPeer;
friend class test::PacketSavingConnection;
@@ -809,6 +823,7 @@ class NET_EXPORT_PRIVATE QuicConnection
QuicFramer framer_;
QuicConnectionHelperInterface* helper_; // Not owned.
+ PerPacketOptions* per_packet_options_; // Not owned.
QuicPacketWriter* writer_; // Owned or not depending on |owns_writer_|.
bool owns_writer_;
// Encryption level for new packets. Should only be changed via
« no previous file with comments | « net/quic/quic_client_session_base.h ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698