| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // In the event of a failure, a many end events will have a |net_error| | 8 // In the event of a failure, a many end events will have a |net_error| |
| 9 // parameter with the integer error code associated with the failure. Most | 9 // parameter with the integer error code associated with the failure. Most |
| 10 // of these parameters are not individually documented. | 10 // of these parameters are not individually documented. |
| (...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2109 EVENT_TYPE(SERVICE_WORKER_START_WORKER) | 2109 EVENT_TYPE(SERVICE_WORKER_START_WORKER) |
| 2110 | 2110 |
| 2111 // The start/end of dispatching a fetch event to an activated, running service | 2111 // The start/end of dispatching a fetch event to an activated, running service |
| 2112 // worker. | 2112 // worker. |
| 2113 // For the END phase, the following parameters are attached: | 2113 // For the END phase, the following parameters are attached: |
| 2114 // { | 2114 // { |
| 2115 // "status": The ServiceWorkerStatusCode as a string. Only present on failure. | 2115 // "status": The ServiceWorkerStatusCode as a string. Only present on failure. |
| 2116 // } | 2116 // } |
| 2117 EVENT_TYPE(SERVICE_WORKER_FETCH_EVENT) | 2117 EVENT_TYPE(SERVICE_WORKER_FETCH_EVENT) |
| 2118 | 2118 |
| 2119 // The start/end of dispatching a navigation preload request to the server. |
| 2120 // The BEGIN phase contains the following parameters: |
| 2121 // { |
| 2122 // "url": The URL that was being requested. |
| 2123 // } |
| 2124 EVENT_TYPE(SERVICE_WORKER_NAVIGATION_PRELOAD) |
| 2125 |
| 2119 // ------------------------------------------------------------------------ | 2126 // ------------------------------------------------------------------------ |
| 2120 // Global events | 2127 // Global events |
| 2121 // ------------------------------------------------------------------------ | 2128 // ------------------------------------------------------------------------ |
| 2122 // These are events which are not grouped by source id, as they have no | 2129 // These are events which are not grouped by source id, as they have no |
| 2123 // context. | 2130 // context. |
| 2124 | 2131 |
| 2125 // This event is emitted whenever NetworkChangeNotifier determines that an | 2132 // This event is emitted whenever NetworkChangeNotifier determines that an |
| 2126 // active network adapter's IP address has changed. | 2133 // active network adapter's IP address has changed. |
| 2127 EVENT_TYPE(NETWORK_IP_ADDRESSES_CHANGED) | 2134 EVENT_TYPE(NETWORK_IP_ADDRESSES_CHANGED) |
| 2128 | 2135 |
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3050 // { | 3057 // { |
| 3051 // "current_position": <Shows current read position>, | 3058 // "current_position": <Shows current read position>, |
| 3052 // } | 3059 // } |
| 3053 // | 3060 // |
| 3054 // The END phase contains the following information: | 3061 // The END phase contains the following information: |
| 3055 // { | 3062 // { |
| 3056 // "result": <Result of reading. Result > 0 is bytes read. Result == 0 means | 3063 // "result": <Result of reading. Result > 0 is bytes read. Result == 0 means |
| 3057 // the end of file. Result < 0 means an error.> | 3064 // the end of file. Result < 0 means an error.> |
| 3058 // } | 3065 // } |
| 3059 EVENT_TYPE(UPLOAD_DATA_STREAM_READ) | 3066 EVENT_TYPE(UPLOAD_DATA_STREAM_READ) |
| OLD | NEW |