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 // This file declares HttpCache::Transaction, a private class of HttpCache so | 5 // This file declares HttpCache::Transaction, a private class of HttpCache so |
6 // it should only be included by http_cache.cc | 6 // it should only be included by http_cache.cc |
7 | 7 |
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 virtual int Read(IOBuffer* buf, | 120 virtual int Read(IOBuffer* buf, |
121 int buf_len, | 121 int buf_len, |
122 const CompletionCallback& callback) OVERRIDE; | 122 const CompletionCallback& callback) OVERRIDE; |
123 virtual void StopCaching() OVERRIDE; | 123 virtual void StopCaching() OVERRIDE; |
124 virtual void DoneReading() OVERRIDE; | 124 virtual void DoneReading() OVERRIDE; |
125 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; | 125 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; |
126 virtual LoadState GetLoadState() const OVERRIDE; | 126 virtual LoadState GetLoadState() const OVERRIDE; |
127 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; | 127 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; |
128 virtual bool GetLoadTimingInfo( | 128 virtual bool GetLoadTimingInfo( |
129 LoadTimingInfo* load_timing_info) const OVERRIDE; | 129 LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 130 virtual void SetPriority(RequestPriority priority) OVERRIDE; |
130 | 131 |
131 private: | 132 private: |
132 static const size_t kNumValidationHeaders = 2; | 133 static const size_t kNumValidationHeaders = 2; |
133 // Helper struct to pair a header name with its value, for | 134 // Helper struct to pair a header name with its value, for |
134 // headers used to validate cache entries. | 135 // headers used to validate cache entries. |
135 struct ValidationHeaders { | 136 struct ValidationHeaders { |
136 ValidationHeaders() : initialized(false) {} | 137 ValidationHeaders() : initialized(false) {} |
137 | 138 |
138 std::string values[kNumValidationHeaders]; | 139 std::string values[kNumValidationHeaders]; |
139 bool initialized; | 140 bool initialized; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 // For sensitivity analysis, the simulated increase in cache service times, | 443 // For sensitivity analysis, the simulated increase in cache service times, |
443 // in percent. | 444 // in percent. |
444 int sensitivity_analysis_percent_increase_; | 445 int sensitivity_analysis_percent_increase_; |
445 | 446 |
446 HttpTransactionDelegate* transaction_delegate_; | 447 HttpTransactionDelegate* transaction_delegate_; |
447 }; | 448 }; |
448 | 449 |
449 } // namespace net | 450 } // namespace net |
450 | 451 |
451 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 452 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |