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