| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // NOTE: No header guards are used, since this file is intended to be expanded | 5 // NOTE: No header guards are used, since this file is intended to be expanded |
| 6 // directly into net_log.h. DO NOT include this file anywhere else. | 6 // directly into net_log.h. DO NOT include this file anywhere else. |
| 7 | 7 |
| 8 // -------------------------------------------------------------------------- | 8 // -------------------------------------------------------------------------- |
| 9 // General pseudo-events | 9 // General pseudo-events |
| 10 // -------------------------------------------------------------------------- | 10 // -------------------------------------------------------------------------- |
| 11 | 11 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // The start/end of when proxy autoconfig was artificially paused following | 112 // The start/end of when proxy autoconfig was artificially paused following |
| 113 // a network change event. (We wait some amount of time after being told of | 113 // a network change event. (We wait some amount of time after being told of |
| 114 // network changes to avoid hitting spurious errors during auto-detect). | 114 // network changes to avoid hitting spurious errors during auto-detect). |
| 115 EVENT_TYPE(INIT_PROXY_RESOLVER_WAIT) | 115 EVENT_TYPE(INIT_PROXY_RESOLVER_WAIT) |
| 116 | 116 |
| 117 // The start/end of download of a PAC script. This could be the well-known | 117 // The start/end of download of a PAC script. This could be the well-known |
| 118 // WPAD URL (if testing auto-detect), or a custom PAC URL. | 118 // WPAD URL (if testing auto-detect), or a custom PAC URL. |
| 119 // | 119 // |
| 120 // The START event has the parameters: | 120 // The START event has the parameters: |
| 121 // { | 121 // { |
| 122 // "source": <String describing where PAC script comes from>, | 122 // "url": <URL string of script being fetched>, |
| 123 // } | 123 // } |
| 124 // | 124 // |
| 125 // If the fetch failed, then the END phase has these parameters: | 125 // If the fetch failed, then the END phase has these parameters: |
| 126 // { | 126 // { |
| 127 // "net_error": <Net error code integer>, | 127 // "error_code": <Net error code integer>, |
| 128 // } | 128 // } |
| 129 EVENT_TYPE(INIT_PROXY_RESOLVER_FETCH_PAC_SCRIPT) | 129 EVENT_TYPE(INIT_PROXY_RESOLVER_FETCH_PAC_SCRIPT) |
| 130 | 130 |
| 131 // The start/end of the testing of a PAC script (trying to parse the fetched | 131 // The start/end of the testing of a PAC script (trying to parse the fetched |
| 132 // file as javascript). | 132 // file as javascript). |
| 133 // | 133 // |
| 134 // If the parsing of the script failed, the END phase will have parameters: | 134 // If the parsing of the script failed, the END phase will have parameters: |
| 135 // { | 135 // { |
| 136 // "net_error": <Net error code integer>, | 136 // "error_code": <Net error code integer>, |
| 137 // } | 137 // } |
| 138 EVENT_TYPE(INIT_PROXY_RESOLVER_SET_PAC_SCRIPT) | 138 EVENT_TYPE(INIT_PROXY_RESOLVER_SET_PAC_SCRIPT) |
| 139 | 139 |
| 140 // This event means that initialization failed because there was no | 140 // This event means that initialization failed because there was no |
| 141 // configured script fetcher. (This indicates a configuration error). | 141 // configured script fetcher. (This indicates a configuration error). |
| 142 EVENT_TYPE(INIT_PROXY_RESOLVER_HAS_NO_FETCHER) | 142 EVENT_TYPE(INIT_PROXY_RESOLVER_HAS_NO_FETCHER) |
| 143 | 143 |
| 144 // This event is emitted after deciding to fall-back to the next source | 144 // This event is emitted after deciding to fall-back to the next PAC |
| 145 // of PAC scripts in the list. | 145 // script in the list. |
| 146 EVENT_TYPE(INIT_PROXY_RESOLVER_FALLING_BACK_TO_NEXT_PAC_SOURCE) | 146 EVENT_TYPE(INIT_PROXY_RESOLVER_FALLING_BACK_TO_NEXT_PAC_URL) |
| 147 | 147 |
| 148 // ------------------------------------------------------------------------ | 148 // ------------------------------------------------------------------------ |
| 149 // ProxyService | 149 // ProxyService |
| 150 // ------------------------------------------------------------------------ | 150 // ------------------------------------------------------------------------ |
| 151 | 151 |
| 152 // The start/end of a proxy resolve request. | 152 // The start/end of a proxy resolve request. |
| 153 EVENT_TYPE(PROXY_SERVICE) | 153 EVENT_TYPE(PROXY_SERVICE) |
| 154 | 154 |
| 155 // The time while a request is waiting on InitProxyResolver to configure | 155 // The time while a request is waiting on InitProxyResolver to configure |
| 156 // against either WPAD or custom PAC URL. The specifics on this time | 156 // against either WPAD or custom PAC URL. The specifics on this time |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 | 985 |
| 986 // ------------------------------------------------------------------------ | 986 // ------------------------------------------------------------------------ |
| 987 // Global events | 987 // Global events |
| 988 // ------------------------------------------------------------------------ | 988 // ------------------------------------------------------------------------ |
| 989 // These are events which are not grouped by source id, as they have no | 989 // These are events which are not grouped by source id, as they have no |
| 990 // context. | 990 // context. |
| 991 | 991 |
| 992 // This event is emitted whenever NetworkChangeNotifier determines that the | 992 // This event is emitted whenever NetworkChangeNotifier determines that the |
| 993 // underlying network has changed. | 993 // underlying network has changed. |
| 994 EVENT_TYPE(NETWORK_IP_ADDRESSES_CHANGED) | 994 EVENT_TYPE(NETWORK_IP_ADDRESSES_CHANGED) |
| OLD | NEW |