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

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

Issue 2319343004: Makes migration on write error asynchronous to avoid reentrancy issues (Closed)
Patch Set: synced and rebased 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
« no previous file with comments | « no previous file | net/quic/chromium/mock_network_change_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/mock_network_change_notifier.h
diff --git a/net/quic/chromium/mock_network_change_notifier.h b/net/quic/chromium/mock_network_change_notifier.h
index e5316f8944fffeb26750578d7567130759d478f1..de9ef7a51db7f462a5d240edb55893b1cd6c1791 100644
--- a/net/quic/chromium/mock_network_change_notifier.h
+++ b/net/quic/chromium/mock_network_change_notifier.h
@@ -25,10 +25,20 @@ class MockNetworkChangeNotifier : public NetworkChangeNotifier {
void GetCurrentConnectedNetworks(NetworkList* network_list) const override;
+ // Delivers a MADE_DEFAULT notification to observers.
void NotifyNetworkMadeDefault(NetworkChangeNotifier::NetworkHandle network);
+ // Queues a MADE_DEFAULT notification to be delivered to observers
+ // but does not spin the message loop to actually deliver it.
+ void QueueNetworkMadeDefault(NetworkChangeNotifier::NetworkHandle network);
+
+ // Delivers a DISCONNECTED notification to observers.
void NotifyNetworkDisconnected(NetworkChangeNotifier::NetworkHandle network);
+ // Queues a DISCONNECTED notification to be delivered to observers
+ // but does not spin the message loop to actually deliver it.
+ void QueueNetworkDisconnected(NetworkChangeNotifier::NetworkHandle network);
+
private:
bool force_network_handles_supported_;
NetworkChangeNotifier::NetworkList connected_networks_;
« no previous file with comments | « no previous file | net/quic/chromium/mock_network_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698