| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 virtual LoadState GetLoadState() const OVERRIDE; | 127 virtual LoadState GetLoadState() const OVERRIDE; |
| 128 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; | 128 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; |
| 129 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) OVERRIDE; | 129 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) 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( | 133 virtual void SetWebSocketHandshakeStreamCreateHelper( |
| 134 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; | 134 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; |
| 135 virtual void SetBeforeNetworkStartCallback( | 135 virtual void SetBeforeNetworkStartCallback( |
| 136 const BeforeNetworkStartCallback& callback) OVERRIDE; | 136 const BeforeNetworkStartCallback& callback) OVERRIDE; |
| 137 virtual void SetBeforeProxyHeadersSentCallback( |
| 138 const BeforeProxyHeadersSentCallback& callback) OVERRIDE; |
| 137 virtual int ResumeNetworkStart() OVERRIDE; | 139 virtual int ResumeNetworkStart() OVERRIDE; |
| 138 | 140 |
| 139 private: | 141 private: |
| 140 static const size_t kNumValidationHeaders = 2; | 142 static const size_t kNumValidationHeaders = 2; |
| 141 // Helper struct to pair a header name with its value, for | 143 // Helper struct to pair a header name with its value, for |
| 142 // headers used to validate cache entries. | 144 // headers used to validate cache entries. |
| 143 struct ValidationHeaders { | 145 struct ValidationHeaders { |
| 144 ValidationHeaders() : initialized(false) {} | 146 ValidationHeaders() : initialized(false) {} |
| 145 | 147 |
| 146 std::string values[kNumValidationHeaders]; | 148 std::string values[kNumValidationHeaders]; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; | 438 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; |
| 437 | 439 |
| 438 // The helper object to use to create WebSocketHandshakeStreamBase | 440 // The helper object to use to create WebSocketHandshakeStreamBase |
| 439 // objects. Only relevant when establishing a WebSocket connection. | 441 // objects. Only relevant when establishing a WebSocket connection. |
| 440 // This is passed to the underlying network transaction. It is stored here in | 442 // This is passed to the underlying network transaction. It is stored here in |
| 441 // case the transaction does not exist yet. | 443 // case the transaction does not exist yet. |
| 442 WebSocketHandshakeStreamBase::CreateHelper* | 444 WebSocketHandshakeStreamBase::CreateHelper* |
| 443 websocket_handshake_stream_base_create_helper_; | 445 websocket_handshake_stream_base_create_helper_; |
| 444 | 446 |
| 445 BeforeNetworkStartCallback before_network_start_callback_; | 447 BeforeNetworkStartCallback before_network_start_callback_; |
| 448 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 446 | 449 |
| 447 DISALLOW_COPY_AND_ASSIGN(Transaction); | 450 DISALLOW_COPY_AND_ASSIGN(Transaction); |
| 448 }; | 451 }; |
| 449 | 452 |
| 450 } // namespace net | 453 } // namespace net |
| 451 | 454 |
| 452 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 455 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |