| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 FINISHED | 142 FINISHED |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 class HttpFilterContext; | 145 class HttpFilterContext; |
| 146 | 146 |
| 147 virtual ~URLRequestHttpJob(); | 147 virtual ~URLRequestHttpJob(); |
| 148 | 148 |
| 149 void RecordTimer(); | 149 void RecordTimer(); |
| 150 void ResetTimer(); | 150 void ResetTimer(); |
| 151 | 151 |
| 152 virtual void UpdatePacketReadTimes(); | 152 virtual void UpdatePacketReadTimes() OVERRIDE; |
| 153 void RecordPacketStats(FilterContext::StatisticSelector statistic) const; | 153 void RecordPacketStats(FilterContext::StatisticSelector statistic) const; |
| 154 | 154 |
| 155 void RecordCompressionHistograms(); | 155 void RecordCompressionHistograms(); |
| 156 bool IsCompressibleContent() const; | 156 bool IsCompressibleContent() const; |
| 157 | 157 |
| 158 // Starts the transaction if extensions using the webrequest API do not | 158 // Starts the transaction if extensions using the webrequest API do not |
| 159 // object. | 159 // object. |
| 160 void StartTransaction(); | 160 void StartTransaction(); |
| 161 void StartTransactionInternal(); | 161 void StartTransactionInternal(); |
| 162 | 162 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 228 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
| 229 // to inform the NetworkDelegate that it may not call back. | 229 // to inform the NetworkDelegate that it may not call back. |
| 230 bool awaiting_callback_; | 230 bool awaiting_callback_; |
| 231 | 231 |
| 232 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 232 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace net | 235 } // namespace net |
| 236 | 236 |
| 237 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 237 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |