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 stand/end of performing an async revalidation. | |
yhirano
2014/08/26 07:52:01
start?
Adam Rice
2014/08/26 13:38:41
Done.
| |
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 // } | |
852 // | |
853 // For the END phase, if there was an error, the following parameters are | |
854 // attached: | |
yhirano
2014/08/26 07:52:01
Seems the result is always attached.
Adam Rice
2014/08/26 13:38:41
BoundNetLog::EndEventWithNetErrorCode() has a spec
| |
855 // { | |
856 // "net_error": <Net error code of the failure>, | |
857 // } | |
858 EVENT_TYPE(ASYNC_REVALIDATION) | |
859 | |
838 // ------------------------------------------------------------------------ | 860 // ------------------------------------------------------------------------ |
839 // Disk Cache / Memory Cache | 861 // Disk Cache / Memory Cache |
840 // ------------------------------------------------------------------------ | 862 // ------------------------------------------------------------------------ |
841 | 863 |
842 // The creation/destruction of a disk_cache::EntryImpl object. The "creation" | 864 // 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 | 865 // 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 | 866 // good and associated with a key. Note that disk and memory cache entries |
845 // share event types. | 867 // share event types. |
846 // | 868 // |
847 // For the BEGIN phase, the following parameters are attached: | 869 // 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. | 2408 // entry. It contains no parameters. |
2387 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_BEGIN) | 2409 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_BEGIN) |
2388 | 2410 |
2389 // This event is created when the Simple Cache finishes a CloseEntry call. It | 2411 // This event is created when the Simple Cache finishes a CloseEntry call. It |
2390 // contains no parameters. | 2412 // contains no parameters. |
2391 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_END) | 2413 EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_END) |
2392 | 2414 |
2393 // This event is created (in a source of the same name) when the internal DNS | 2415 // 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. | 2416 // resolver creates a UDP socket to check for global IPv6 connectivity. |
2395 EVENT_TYPE(IPV6_REACHABILITY_CHECK) | 2417 EVENT_TYPE(IPV6_REACHABILITY_CHECK) |
OLD | NEW |