| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 virtual void StopCaching() OVERRIDE; | 123 virtual void StopCaching() OVERRIDE; |
| 124 virtual bool GetFullRequestHeaders( | 124 virtual bool GetFullRequestHeaders( |
| 125 HttpRequestHeaders* headers) const OVERRIDE; | 125 HttpRequestHeaders* headers) const OVERRIDE; |
| 126 virtual void DoneReading() OVERRIDE; | 126 virtual void DoneReading() OVERRIDE; |
| 127 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; | 127 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; |
| 128 virtual LoadState GetLoadState() const OVERRIDE; | 128 virtual LoadState GetLoadState() const OVERRIDE; |
| 129 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; | 129 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; |
| 130 virtual bool GetLoadTimingInfo( | 130 virtual bool GetLoadTimingInfo( |
| 131 LoadTimingInfo* load_timing_info) const OVERRIDE; | 131 LoadTimingInfo* load_timing_info) const OVERRIDE; |
| 132 virtual void SetPriority(RequestPriority priority) OVERRIDE; | 132 virtual void SetPriority(RequestPriority priority) OVERRIDE; |
| 133 virtual void SetWebSocketHandshakeStreamCreateHelper( |
| 134 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; |
| 133 | 135 |
| 134 private: | 136 private: |
| 135 static const size_t kNumValidationHeaders = 2; | 137 static const size_t kNumValidationHeaders = 2; |
| 136 // Helper struct to pair a header name with its value, for | 138 // Helper struct to pair a header name with its value, for |
| 137 // headers used to validate cache entries. | 139 // headers used to validate cache entries. |
| 138 struct ValidationHeaders { | 140 struct ValidationHeaders { |
| 139 ValidationHeaders() : initialized(false) {} | 141 ValidationHeaders() : initialized(false) {} |
| 140 | 142 |
| 141 std::string values[kNumValidationHeaders]; | 143 std::string values[kNumValidationHeaders]; |
| 142 bool initialized; | 144 bool initialized; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 | 433 |
| 432 // Load timing information for the last network request, if any. Set in the | 434 // Load timing information for the last network request, if any. Set in the |
| 433 // 304 and 206 response cases, as the network transaction may be destroyed | 435 // 304 and 206 response cases, as the network transaction may be destroyed |
| 434 // before the caller requests load timing information. | 436 // before the caller requests load timing information. |
| 435 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; | 437 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; |
| 436 }; | 438 }; |
| 437 | 439 |
| 438 } // namespace net | 440 } // namespace net |
| 439 | 441 |
| 440 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 442 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |