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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 828 |
829 // Measures the time while reading/writing a disk cache entry's response headers | 829 // Measures the time while reading/writing a disk cache entry's response headers |
830 // or metadata. | 830 // or metadata. |
831 EVENT_TYPE(HTTP_CACHE_READ_INFO) | 831 EVENT_TYPE(HTTP_CACHE_READ_INFO) |
832 EVENT_TYPE(HTTP_CACHE_WRITE_INFO) | 832 EVENT_TYPE(HTTP_CACHE_WRITE_INFO) |
833 | 833 |
834 // Measures the time while reading/writing a disk cache entry's body. | 834 // Measures the time while reading/writing a disk cache entry's body. |
835 EVENT_TYPE(HTTP_CACHE_READ_DATA) | 835 EVENT_TYPE(HTTP_CACHE_READ_DATA) |
836 EVENT_TYPE(HTTP_CACHE_WRITE_DATA) | 836 EVENT_TYPE(HTTP_CACHE_WRITE_DATA) |
837 | 837 |
| 838 // Identifies the NetLog::Source() for the asynchronous HttpCache::Transaction |
| 839 // that will revalidate this entry. |
| 840 // The event parameters are: |
| 841 // { |
| 842 // "source_dependency": <Source identifier for the async Transaction> |
| 843 // } |
| 844 EVENT_TYPE(HTTP_CACHE_VALIDATE_RESOURCE_ASYNC) |
| 845 |
| 846 // The start/end of performing an async revalidation. |
| 847 // For the BEGIN phase, the event parameters are: |
| 848 // { |
| 849 // "source_dependency": <Source identifier for the Request> |
| 850 // "url": <String of URL being loaded>, |
| 851 // "method": <Method of request> |
| 852 // } |
| 853 // |
| 854 // For the END phase, if there was an error, the following parameters are |
| 855 // attached: |
| 856 // { |
| 857 // "net_error": <Net error code of the failure>, |
| 858 // } |
| 859 EVENT_TYPE(ASYNC_REVALIDATION) |
| 860 |
838 // ------------------------------------------------------------------------ | 861 // ------------------------------------------------------------------------ |
839 // Disk Cache / Memory Cache | 862 // Disk Cache / Memory Cache |
840 // ------------------------------------------------------------------------ | 863 // ------------------------------------------------------------------------ |
841 | 864 |
842 // The creation/destruction of a disk_cache::EntryImpl object. The "creation" | 865 // The creation/destruction of a disk_cache::EntryImpl object. The "creation" |
843 // is considered to be the point at which an Entry is first considered to be | 866 // is considered to be the point at which an Entry is first considered to be |
844 // good and associated with a key. Note that disk and memory cache entries | 867 // good and associated with a key. Note that disk and memory cache entries |
845 // share event types. | 868 // share event types. |
846 // | 869 // |
847 // For the BEGIN phase, the following parameters are attached: | 870 // For the BEGIN phase, the following parameters are attached: |
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2386 // entry. It contains no parameters. | 2409 // entry. It contains no parameters. |
2387 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_BEGIN) | 2410 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_BEGIN) |
2388 | 2411 |
2389 // This event is created when the Simple Cache finishes a CloseEntry call. It | 2412 // This event is created when the Simple Cache finishes a CloseEntry call. It |
2390 // contains no parameters. | 2413 // contains no parameters. |
2391 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_END) | 2414 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_END) |
2392 | 2415 |
2393 // This event is created (in a source of the same name) when the internal DNS | 2416 // This event is created (in a source of the same name) when the internal DNS |
2394 // resolver creates a UDP socket to check for global IPv6 connectivity. | 2417 // resolver creates a UDP socket to check for global IPv6 connectivity. |
2395 EVENT_TYPE(IPV6_REACHABILITY_CHECK) | 2418 EVENT_TYPE(IPV6_REACHABILITY_CHECK) |
OLD | NEW |