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

Unified Diff: net/log/net_log_event_type_list.h

Issue 1973743004: Make LoggingNetworkChangeObserver log specific network changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cronetlog
Patch Set: don't register if NetworkHandles not supported Created 4 years, 7 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/base/logging_network_change_observer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_event_type_list.h
diff --git a/net/log/net_log_event_type_list.h b/net/log/net_log_event_type_list.h
index 6ff6461ffef65e1affece8e5ddbffd4eee9739b1..31b369d17d67b453832fcc1ecd5f862e6ce11a1d 100644
--- a/net/log/net_log_event_type_list.h
+++ b/net/log/net_log_event_type_list.h
@@ -2079,6 +2079,58 @@ EVENT_TYPE(NETWORK_CHANGED)
// }
EVENT_TYPE(DNS_CONFIG_CHANGED)
+// This event is emitted whenever NetworkChangeNotifier determines that a
+// network has connected and network-specific information is available
+// (i.e. the NetworkChangeNotifier::NetworkHandle of the network is known).
+// {
+// "changed_network_handle": <Network handle>
+// "changed_network_type": <Type of network>
+// "default_active_network_handle": <Network handle of default network>
+// "current_active_networks": <Mapping from network handle to network
+// type, containing entries for all active
+// networks.>
+// }
+EVENT_TYPE(SPECIFIC_NETWORK_CONNECTED)
+
+// This event is emitted whenever NetworkChangeNotifier determines that a
+// network has disconnected and network-specific information is available
+// (i.e. the NetworkChangeNotifier::NetworkHandle of the network is known).
+// {
+// "changed_network_handle": <Network handle>
+// "changed_network_type": <Type of network>
+// "default_active_network_handle": <Network handle of default network>
+// "current_active_networks": <Mapping from network handle to network
+// type, containing entries for all active
+// networks.>
+// }
+EVENT_TYPE(SPECIFIC_NETWORK_DISCONNECTED)
+
+// This event is emitted whenever NetworkChangeNotifier determines that a
+// network is soon to disconnect and network-specific information is available
+// (i.e. the NetworkChangeNotifier::NetworkHandle of the network is known).
+// {
+// "changed_network_handle": <Network handle>
+// "changed_network_type": <Type of network>
+// "default_active_network_handle": <Network handle of default network>
+// "current_active_networks": <Mapping from network handle to network
+// type, containing entries for all active
+// networks.>
+// }
+EVENT_TYPE(SPECIFIC_NETWORK_SOON_TO_DISCONNECT)
+
+// This event is emitted whenever NetworkChangeNotifier determines that a
+// network has become the default and network-specific information is available
+// (i.e. the NetworkChangeNotifier::NetworkHandle of the network is known).
+// {
+// "changed_network_handle": <Network handle>
+// "changed_network_type": <Type of network>
+// "default_active_network_handle": <Network handle of default network>
+// "current_active_networks": <Mapping from network handle to network
+// type, containing entries for all active
+// networks.>
+// }
+EVENT_TYPE(SPECIFIC_NETWORK_MADE_DEFAULT)
+
// ------------------------------------------------------------------------
// Exponential back-off throttling events
// ------------------------------------------------------------------------
« no previous file with comments | « net/base/logging_network_change_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698