| 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 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 // For other downloads, uses the first non-empty variable of: | 1553 // For other downloads, uses the first non-empty variable of: |
| 1554 // |state_info.force_filename| | 1554 // |state_info.force_filename| |
| 1555 // |suggested_filename_| | 1555 // |suggested_filename_| |
| 1556 // the filename specified in the final URL>, | 1556 // the filename specified in the final URL>, |
| 1557 // "danger_type": <NOT,FILE,URL,CONTENT,MAYBE_CONTENT>, | 1557 // "danger_type": <NOT,FILE,URL,CONTENT,MAYBE_CONTENT>, |
| 1558 // "safety_state": <SAFE, DANGEROUS, DANGEROUS_BUT_VALIDATED>, | 1558 // "safety_state": <SAFE, DANGEROUS, DANGEROUS_BUT_VALIDATED>, |
| 1559 // "start_offset": <Where to start writing (defaults to 0)>, | 1559 // "start_offset": <Where to start writing (defaults to 0)>, |
| 1560 // } | 1560 // } |
| 1561 // The END event will occur when the download is interrupted, canceled or | 1561 // The END event will occur when the download is interrupted, canceled or |
| 1562 // completed. | 1562 // completed. |
| 1563 // DownloadItems that are loaded from history and are never active simply ADD |
| 1564 // one of these events. |
| 1563 EVENT_TYPE(DOWNLOAD_ITEM_ACTIVE) | 1565 EVENT_TYPE(DOWNLOAD_ITEM_ACTIVE) |
| 1564 | 1566 |
| 1565 // This event is created when a download item has been checked by the | 1567 // This event is created when a download item has been checked by the |
| 1566 // safe browsing system. | 1568 // safe browsing system. |
| 1567 // { | 1569 // { |
| 1568 // "danger_type": <NOT,FILE,URL,CONTENT,MAYBE_CONTENT>, | 1570 // "danger_type": <NOT,FILE,URL,CONTENT,MAYBE_CONTENT>, |
| 1569 // "safety_state": <SAFE, DANGEROUS, DANGEROUS_BUT_VALIDATED>, | 1571 // "safety_state": <SAFE, DANGEROUS, DANGEROUS_BUT_VALIDATED>, |
| 1570 // } | 1572 // } |
| 1571 EVENT_TYPE(DOWNLOAD_ITEM_SAFETY_STATE_UPDATED) | 1573 EVENT_TYPE(DOWNLOAD_ITEM_SAFETY_STATE_UPDATED) |
| 1572 | 1574 |
| 1573 // This event is created when a download item has been inserted into the | |
| 1574 // history database. | |
| 1575 // { | |
| 1576 // "db_handle": <The database handle for the item>, | |
| 1577 // } | |
| 1578 EVENT_TYPE(DOWNLOAD_ITEM_IN_HISTORY) | |
| 1579 | |
| 1580 // This event is created when a download item is updated. | 1575 // This event is created when a download item is updated. |
| 1581 // { | 1576 // { |
| 1582 // "bytes_so_far": <Number of bytes received>, | 1577 // "bytes_so_far": <Number of bytes received>, |
| 1583 // "hash_state": <Current hash state, as a hex-encoded binary string>, | 1578 // "hash_state": <Current hash state, as a hex-encoded binary string>, |
| 1584 // } | 1579 // } |
| 1585 EVENT_TYPE(DOWNLOAD_ITEM_UPDATED) | 1580 EVENT_TYPE(DOWNLOAD_ITEM_UPDATED) |
| 1586 | 1581 |
| 1587 // This event is created when a download item is renamed. | 1582 // This event is created when a download item is renamed. |
| 1588 // { | 1583 // { |
| 1589 // "old_filename": <Old file name>, | 1584 // "old_filename": <Old file name>, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 // } | 1751 // } |
| 1757 EVENT_TYPE(FTP_DATA_CONNECTION) | 1752 EVENT_TYPE(FTP_DATA_CONNECTION) |
| 1758 | 1753 |
| 1759 // This event is created when FTP control connection response is processed. | 1754 // This event is created when FTP control connection response is processed. |
| 1760 // It contains following parameters: | 1755 // It contains following parameters: |
| 1761 // { | 1756 // { |
| 1762 // "lines": <list of strings - each representing a line of the response> | 1757 // "lines": <list of strings - each representing a line of the response> |
| 1763 // "status_code": <numeric status code of the response> | 1758 // "status_code": <numeric status code of the response> |
| 1764 // } | 1759 // } |
| 1765 EVENT_TYPE(FTP_CONTROL_RESPONSE) | 1760 EVENT_TYPE(FTP_CONTROL_RESPONSE) |
| OLD | NEW |