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

Unified Diff: net/quic/quic_connection.h

Issue 1014433002: Land Recent QUIC Changes until 03/09/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replaces_Perspective_enun_88006458
Patch Set: Rebase - added NET_EXPORT_PRIVATE to fix compiler error Created 5 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 | « net/quic/quic_config.cc ('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 48742fce16de931277cc2fb68ad23da45c4dfcdb..2b2a3636aa7f267822b8a0ae6f1749dc46263f20 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -201,6 +201,14 @@ class NET_EXPORT_PRIVATE QuicConnectionDebugVisitor
// Called when the version negotiation is successful.
virtual void OnSuccessfulVersionNegotiation(const QuicVersion& version) {}
+
+ // Called when a CachedNetworkParameters is sent to the client.
+ virtual void OnSendConnectionState(
+ const CachedNetworkParameters& cached_network_params) {}
+
+ // Called when resuming previous connection state.
+ virtual void OnResumeConnectionState(
+ const CachedNetworkParameters& cached_network_params) {}
};
class NET_EXPORT_PRIVATE QuicConnectionHelperInterface {
@@ -255,6 +263,10 @@ class NET_EXPORT_PRIVATE QuicConnection
// Sets connection parameters from the supplied |config|.
void SetFromConfig(const QuicConfig& config);
+ // Called by the session when sending connection state to the client.
+ virtual void OnSendConnectionState(
+ const CachedNetworkParameters& cached_network_params);
+
// Called by the Session when the client has provided CachedNetworkParameters.
// Returns true if this changes the initial connection state.
virtual bool ResumeConnectionState(
« no previous file with comments | « net/quic/quic_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698