| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 int DoCacheReadMetadataComplete(int result); | 292 int DoCacheReadMetadataComplete(int result); |
| 293 int DoNetworkRead(); | 293 int DoNetworkRead(); |
| 294 int DoNetworkReadComplete(int result); | 294 int DoNetworkReadComplete(int result); |
| 295 int DoCacheReadData(); | 295 int DoCacheReadData(); |
| 296 int DoCacheReadDataComplete(int result); | 296 int DoCacheReadDataComplete(int result); |
| 297 int DoCacheWriteData(int num_bytes); | 297 int DoCacheWriteData(int num_bytes); |
| 298 int DoCacheWriteDataComplete(int result); | 298 int DoCacheWriteDataComplete(int result); |
| 299 int DoCacheWriteTruncatedResponse(); | 299 int DoCacheWriteTruncatedResponse(); |
| 300 int DoCacheWriteTruncatedResponseComplete(int result); | 300 int DoCacheWriteTruncatedResponseComplete(int result); |
| 301 | 301 |
| 302 // These functions are involved in a field trial testing storing certificates | |
| 303 // in seperate entries from the HttpResponseInfo. | |
| 304 void ReadCertChain(); | |
| 305 void WriteCertChain(); | |
| 306 | |
| 307 // Sets request_ and fields derived from it. | 302 // Sets request_ and fields derived from it. |
| 308 void SetRequest(const BoundNetLog& net_log, const HttpRequestInfo* request); | 303 void SetRequest(const BoundNetLog& net_log, const HttpRequestInfo* request); |
| 309 | 304 |
| 310 // Returns true if the request should be handled exclusively by the network | 305 // Returns true if the request should be handled exclusively by the network |
| 311 // layer (skipping the cache entirely). | 306 // layer (skipping the cache entirely). |
| 312 bool ShouldPassThrough(); | 307 bool ShouldPassThrough(); |
| 313 | 308 |
| 314 // Called to begin reading from the cache. Returns network error code. | 309 // Called to begin reading from the cache. Returns network error code. |
| 315 int BeginCacheRead(); | 310 int BeginCacheRead(); |
| 316 | 311 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 494 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 500 | 495 |
| 501 base::WeakPtrFactory<Transaction> weak_factory_; | 496 base::WeakPtrFactory<Transaction> weak_factory_; |
| 502 | 497 |
| 503 DISALLOW_COPY_AND_ASSIGN(Transaction); | 498 DISALLOW_COPY_AND_ASSIGN(Transaction); |
| 504 }; | 499 }; |
| 505 | 500 |
| 506 } // namespace net | 501 } // namespace net |
| 507 | 502 |
| 508 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 503 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |