Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 6873029: Apply HSTS rules to also upgrade ws:// -> wss:// if appropriate. This avoids (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698