diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 18:04:14 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 18:04:14 +0000 |
commit | 58bc704d01f839bdf798ef747516323d907c5f33 (patch) | |
tree | 03b668793e864347005b7e22ff459fed6a305778 /net | |
parent | 9973b94ef09d62aad270494fc1346290130dc9f2 (diff) | |
download | chromium_src-58bc704d01f839bdf798ef747516323d907c5f33.zip chromium_src-58bc704d01f839bdf798ef747516323d907c5f33.tar.gz chromium_src-58bc704d01f839bdf798ef747516323d907c5f33.tar.bz2 |
Log whenever the network IP address changes.
This logs to both LOG(INFO), and also to the NetLog (about:net-internals).
BUG=46822
Review URL: http://codereview.chromium.org/2815046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/net_log_event_type_list.h | 10 | ||||
-rw-r--r-- | net/base/net_log_source_type_list.h | 18 |
2 files changed, 19 insertions, 9 deletions
diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h index cc26f5f..8c8df02 100644 --- a/net/base/net_log_event_type_list.h +++ b/net/base/net_log_event_type_list.h @@ -572,3 +572,13 @@ EVENT_TYPE(AUTH_PROXY) // The time spent authentication to the server. EVENT_TYPE(AUTH_SERVER) + +// ------------------------------------------------------------------------ +// Global events +// ------------------------------------------------------------------------ +// These are events which are not grouped by source id, as they have no +// context. + +// This event is emitted whenever NetworkChangeNotifier determines that the +// underlying network has changed. +EVENT_TYPE(NETWORK_IP_ADDRESSSES_CHANGED) diff --git a/net/base/net_log_source_type_list.h b/net/base/net_log_source_type_list.h index 6664c2d..d416f3f 100644 --- a/net/base/net_log_source_type_list.h +++ b/net/base/net_log_source_type_list.h @@ -5,13 +5,13 @@ // NOTE: No header guards are used, since this file is intended to be expanded // directly within a block where the SOURCE_TYPE macro is defined. -SOURCE_TYPE(NONE, -1) +// Used for global events which don't correspond to a particular entity. +SOURCE_TYPE(NONE, 0) +SOURCE_TYPE(URL_REQUEST, 1) +SOURCE_TYPE(SOCKET_STREAM, 2) +SOURCE_TYPE(INIT_PROXY_RESOLVER, 3) +SOURCE_TYPE(CONNECT_JOB, 4) +SOURCE_TYPE(SOCKET, 5) +SOURCE_TYPE(SPDY_SESSION, 6) -SOURCE_TYPE(URL_REQUEST, 0) -SOURCE_TYPE(SOCKET_STREAM, 1) -SOURCE_TYPE(INIT_PROXY_RESOLVER, 2) -SOURCE_TYPE(CONNECT_JOB, 3) -SOURCE_TYPE(SOCKET, 4) -SOURCE_TYPE(SPDY_SESSION, 5) - -SOURCE_TYPE(COUNT, 6) // Always keep this as the last entry. +SOURCE_TYPE(COUNT, 7) // Always keep this as the last entry. |