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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool socket_reused; | 106 bool socket_reused; |
107 | 107 |
108 // Unique socket ID, can be used to identify requests served by the same | 108 // Unique socket ID, can be used to identify requests served by the same |
109 // socket. For connections tunnelled over SPDY proxies, this is the ID of | 109 // socket. For connections tunnelled over SPDY proxies, this is the ID of |
110 // the virtual connection (The SpdyProxyClientSocket), not the ID of the | 110 // the virtual connection (The SpdyProxyClientSocket), not the ID of the |
111 // actual socket. HTTP requests handled by the SPDY proxy itself all use the | 111 // actual socket. HTTP requests handled by the SPDY proxy itself all use the |
112 // actual socket's ID. | 112 // actual socket's ID. |
113 // | 113 // |
114 // 0 when there is no socket associated with the request, or it's not an HTTP | 114 // 0 when there is no socket associated with the request, or it's not an HTTP |
115 // request. | 115 // request. |
116 uint32 socket_log_id; | 116 uint32_t socket_log_id; |
117 | 117 |
118 // Start time as a base::Time, so times can be coverted into actual times. | 118 // Start time as a base::Time, so times can be coverted into actual times. |
119 // Other times are recorded as TimeTicks so they are not affected by clock | 119 // Other times are recorded as TimeTicks so they are not affected by clock |
120 // changes. | 120 // changes. |
121 base::Time request_start_time; | 121 base::Time request_start_time; |
122 | 122 |
123 base::TimeTicks request_start; | 123 base::TimeTicks request_start; |
124 | 124 |
125 // The time spent determing which proxy to use. Null when there is no PAC. | 125 // The time spent determing which proxy to use. Null when there is no PAC. |
126 base::TimeTicks proxy_resolve_start; | 126 base::TimeTicks proxy_resolve_start; |
127 base::TimeTicks proxy_resolve_end; | 127 base::TimeTicks proxy_resolve_end; |
128 | 128 |
129 ConnectTiming connect_timing; | 129 ConnectTiming connect_timing; |
130 | 130 |
131 // The time that sending HTTP request started / ended. | 131 // The time that sending HTTP request started / ended. |
132 base::TimeTicks send_start; | 132 base::TimeTicks send_start; |
133 base::TimeTicks send_end; | 133 base::TimeTicks send_end; |
134 | 134 |
135 // The time at which the end of the HTTP headers were received. | 135 // The time at which the end of the HTTP headers were received. |
136 base::TimeTicks receive_headers_end; | 136 base::TimeTicks receive_headers_end; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace net | 139 } // namespace net |
140 | 140 |
141 #endif // NET_BASE_LOAD_TIMING_INFO_H_ | 141 #endif // NET_BASE_LOAD_TIMING_INFO_H_ |
OLD | NEW |