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

Unified Diff: net/quic/chromium/quic_chromium_client_session.h

Issue 2329853002: Introduces ability for session to wait on a migration trigger for a new (Closed)
Patch Set: comments addressed Created 4 years, 3 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
Index: net/quic/chromium/quic_chromium_client_session.h
diff --git a/net/quic/chromium/quic_chromium_client_session.h b/net/quic/chromium/quic_chromium_client_session.h
index 35f0ee888a46772af09bfea390a90b869352c7bf..572ed1b7c83b6c1777238bddf5799942beac6dbe 100644
--- a/net/quic/chromium/quic_chromium_client_session.h
+++ b/net/quic/chromium/quic_chromium_client_session.h
@@ -273,6 +273,19 @@ class NET_EXPORT_PRIVATE QuicChromiumClientSession
std::unique_ptr<QuicChromiumPacketReader> reader,
std::unique_ptr<QuicChromiumPacketWriter> writer);
+ // Called when NetworkChangeNotifier notifies observers of a newly
+ // connected network. Migrates this session to the newly connected
+ // network if the session has a pending migration.
+ void OnNetworkConnected(NetworkChangeNotifier::NetworkHandle network,
+ const BoundNetLog& bound_net_log);
+
+ // Schedules a migration alarm to wait for a new network.
+ void OnNoNewNetwork();
+
+ // Called when migration alarm fires. If migration has not occurred
+ // since alarm was set, closes session with error.
+ void OnMigrationTimeout(size_t num_sockets);
+
// Populates network error details for this session.
void PopulateNetErrorDetails(NetErrorDetails* details);
« no previous file with comments | « net/quic/chromium/mock_network_change_notifier.cc ('k') | net/quic/chromium/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698