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 #ifndef NET_BASE_LOAD_TIMING_INFO_H_ | 5 #ifndef NET_BASE_LOAD_TIMING_INFO_H_ |
6 #define NET_BASE_LOAD_TIMING_INFO_H_ | 6 #define NET_BASE_LOAD_TIMING_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 // DNS and SSL times are both times for the host, not the proxy, so DNS times | 47 // DNS and SSL times are both times for the host, not the proxy, so DNS times |
48 // when using proxies are null, and only requests to HTTPS hosts (Not proxies) | 48 // when using proxies are null, and only requests to HTTPS hosts (Not proxies) |
49 // have SSL times. One exception to this is when a proxy server itself returns | 49 // have SSL times. One exception to this is when a proxy server itself returns |
50 // a redirect response. In this case, the connect times treat the proxy as the | 50 // a redirect response. In this case, the connect times treat the proxy as the |
51 // host. The send and receive times will all be null, however. | 51 // host. The send and receive times will all be null, however. |
52 // See HttpNetworkTransaction::OnHttpsProxyTunnelResponse. | 52 // See HttpNetworkTransaction::OnHttpsProxyTunnelResponse. |
53 // TODO(mmenke): Is this worth fixing? | 53 // TODO(mmenke): Is this worth fixing? |
54 // | 54 // |
55 // Note that internal to the network stack, times are when events actually | 55 // Note that internal to the network stack, times are when events actually |
56 // occurred. URLRequest converts them to time which the network stack was | 56 // occurred. URLRequest converts them to time which the network stack was |
57 // blocked on each state. | 57 // blocked on each state. |
mmenke
2016/03/25 14:50:28
This is kinda weird...We're introducing new behavi
| |
58 struct NET_EXPORT LoadTimingInfo { | 58 struct NET_EXPORT LoadTimingInfo { |
59 // Contains the LoadTimingInfo events related to establishing a connection. | 59 // Contains the LoadTimingInfo events related to establishing a connection. |
60 // These are all set by ConnectJobs. | 60 // These are all set by ConnectJobs. |
61 struct NET_EXPORT_PRIVATE ConnectTiming { | 61 struct NET_EXPORT_PRIVATE ConnectTiming { |
62 ConnectTiming(); | 62 ConnectTiming(); |
63 ~ConnectTiming(); | 63 ~ConnectTiming(); |
64 | 64 |
65 // The time spent looking up the host's DNS address. Null for requests that | 65 // The time spent looking up the host's DNS address. Null for requests that |
66 // used proxies to look up the DNS address. Also null for SOCKS4 proxies, | 66 // used proxies to look up the DNS address. Also null for SOCKS4 proxies, |
67 // since the DNS address is only looked up after the connection is | 67 // since the DNS address is only looked up after the connection is |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 base::TimeTicks proxy_resolve_end; | 129 base::TimeTicks proxy_resolve_end; |
130 | 130 |
131 ConnectTiming connect_timing; | 131 ConnectTiming connect_timing; |
132 | 132 |
133 // The time that sending HTTP request started / ended. | 133 // The time that sending HTTP request started / ended. |
134 base::TimeTicks send_start; | 134 base::TimeTicks send_start; |
135 base::TimeTicks send_end; | 135 base::TimeTicks send_end; |
136 | 136 |
137 // The time at which the end of the HTTP headers were received. | 137 // The time at which the end of the HTTP headers were received. |
138 base::TimeTicks receive_headers_end; | 138 base::TimeTicks receive_headers_end; |
139 | |
140 // In case the resource was proactively pushed by the server, these are | |
141 // the times that push started and ended. Note that push_end will be null | |
142 // if the request is still being pushed. | |
143 base::TimeTicks push_start; | |
144 base::TimeTicks push_end; | |
139 }; | 145 }; |
140 | 146 |
141 } // namespace net | 147 } // namespace net |
142 | 148 |
143 #endif // NET_BASE_LOAD_TIMING_INFO_H_ | 149 #endif // NET_BASE_LOAD_TIMING_INFO_H_ |
OLD | NEW |