| 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 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2065 | 2065 |
| 2066 // This event is emitted when Service Worker is destroyed before it | 2066 // This event is emitted when Service Worker is destroyed before it |
| 2067 // finishes responding with a blob. | 2067 // finishes responding with a blob. |
| 2068 EVENT_TYPE(SERVICE_WORKER_ERROR_KILLED_WITH_BLOB) | 2068 EVENT_TYPE(SERVICE_WORKER_ERROR_KILLED_WITH_BLOB) |
| 2069 | 2069 |
| 2070 // This event is emitted when Service Worker is destroyed before it | 2070 // This event is emitted when Service Worker is destroyed before it |
| 2071 // finishes responding with a stream. | 2071 // finishes responding with a stream. |
| 2072 EVENT_TYPE(SERVICE_WORKER_ERROR_KILLED_WITH_STREAM) | 2072 EVENT_TYPE(SERVICE_WORKER_ERROR_KILLED_WITH_STREAM) |
| 2073 | 2073 |
| 2074 // This event is emitted when a request to be forwarded to a Service Worker has | 2074 // This event is emitted when a request to be forwarded to a Service Worker has |
| 2075 // request body blobs, and it may be necessary to wait for them to finish | 2075 // request body, and it may be necessary to wait for sizes of files in the body |
| 2076 // construction. The END phase event parameter is: | 2076 // to be resolved. The END phase event parameter is: |
| 2077 // { | 2077 // { |
| 2078 // "success": Whether the request blobs finished construction successfully. | 2078 // "success": Whether file sizes in the request body have been resolved |
| 2079 // successfully |
| 2079 // } | 2080 // } |
| 2080 EVENT_TYPE(SERVICE_WORKER_WAITING_FOR_REQUEST_BODY_BLOB) | 2081 EVENT_TYPE(SERVICE_WORKER_WAITING_FOR_REQUEST_BODY_FILES) |
| 2081 | 2082 |
| 2082 // This event is emitted when a request failed to be forwarded to a Service | 2083 // This event is emitted when a request failed to be forwarded to a Service |
| 2083 // Worker, because it had a request body with a blob that failed to be | 2084 // Worker, because it had a request body with a blob that failed to be |
| 2084 // constructed. | 2085 // constructed. |
| 2085 EVENT_TYPE(SERVICE_WORKER_ERROR_REQUEST_BODY_BLOB_FAILED) | 2086 EVENT_TYPE(SERVICE_WORKER_ERROR_REQUEST_BODY_BLOB_FAILED) |
| 2086 | 2087 |
| 2087 // The start/end of dispatching a fetch event to a service worker. This includes | 2088 // The start/end of dispatching a fetch event to a service worker. This includes |
| 2088 // waiting for the worker to activate and starting the worker if neccessary. | 2089 // waiting for the worker to activate and starting the worker if neccessary. |
| 2089 // | 2090 // |
| 2090 // The BEGIN phase consists of the following parameters: | 2091 // The BEGIN phase consists of the following parameters: |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3056 // { | 3057 // { |
| 3057 // "current_position": <Shows current read position>, | 3058 // "current_position": <Shows current read position>, |
| 3058 // } | 3059 // } |
| 3059 // | 3060 // |
| 3060 // The END phase contains the following information: | 3061 // The END phase contains the following information: |
| 3061 // { | 3062 // { |
| 3062 // "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 |
| 3063 // the end of file. Result < 0 means an error.> | 3064 // the end of file. Result < 0 means an error.> |
| 3064 // } | 3065 // } |
| 3065 EVENT_TYPE(UPLOAD_DATA_STREAM_READ) | 3066 EVENT_TYPE(UPLOAD_DATA_STREAM_READ) |
| OLD | NEW |