OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 void RecordTimer(); | 141 void RecordTimer(); |
142 void ResetTimer(); | 142 void ResetTimer(); |
143 | 143 |
144 virtual void UpdatePacketReadTimes(); | 144 virtual void UpdatePacketReadTimes(); |
145 void RecordPacketStats(FilterContext::StatisticSelector statistic) const; | 145 void RecordPacketStats(FilterContext::StatisticSelector statistic) const; |
146 | 146 |
147 void RecordCompressionHistograms(); | 147 void RecordCompressionHistograms(); |
148 bool IsCompressibleContent() const; | 148 bool IsCompressibleContent() const; |
149 | 149 |
150 static bool IsSNIAvailable(URLRequestContext* context); | |
151 | |
152 base::Time request_creation_time_; | 150 base::Time request_creation_time_; |
153 | 151 |
154 // Data used for statistics gathering. This data is only used for histograms | 152 // Data used for statistics gathering. This data is only used for histograms |
155 // and is not required. It is only gathered if packet_timing_enabled_ == true. | 153 // and is not required. It is only gathered if packet_timing_enabled_ == true. |
156 // | 154 // |
157 // TODO(jar): improve the quality of the gathered info by gathering most times | 155 // TODO(jar): improve the quality of the gathered info by gathering most times |
158 // at a lower point in the network stack, assuring we have actual packet | 156 // at a lower point in the network stack, assuring we have actual packet |
159 // boundaries, rather than approximations. Also note that input byte count | 157 // boundaries, rather than approximations. Also note that input byte count |
160 // as gathered here is post-SSL, and post-cache-fetch, and does not reflect | 158 // as gathered here is post-SSL, and post-cache-fetch, and does not reflect |
161 // true packet arrival times in such cases. | 159 // true packet arrival times in such cases. |
(...skipping 22 matching lines...) Expand all Loading... |
184 | 182 |
185 scoped_ptr<HttpFilterContext> filter_context_; | 183 scoped_ptr<HttpFilterContext> filter_context_; |
186 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 184 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
187 | 185 |
188 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 186 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
189 }; | 187 }; |
190 | 188 |
191 } // namespace net | 189 } // namespace net |
192 | 190 |
193 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 191 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |