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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 int DoCacheWriteResponseComplete(int result); | 260 int DoCacheWriteResponseComplete(int result); |
261 int DoCacheReadMetadata(); | 261 int DoCacheReadMetadata(); |
262 int DoCacheReadMetadataComplete(int result); | 262 int DoCacheReadMetadataComplete(int result); |
263 int DoCacheQueryData(); | 263 int DoCacheQueryData(); |
264 int DoCacheQueryDataComplete(int result); | 264 int DoCacheQueryDataComplete(int result); |
265 int DoCacheReadData(); | 265 int DoCacheReadData(); |
266 int DoCacheReadDataComplete(int result); | 266 int DoCacheReadDataComplete(int result); |
267 int DoCacheWriteData(int num_bytes); | 267 int DoCacheWriteData(int num_bytes); |
268 int DoCacheWriteDataComplete(int result); | 268 int DoCacheWriteDataComplete(int result); |
269 | 269 |
270 // These functions are involved in a field trial testing storing certificates | |
271 // in seperate entries from the HttpResponseInfo. | |
272 void CertChainRead(); | |
273 void CertChainWrite(); | |
wtc
2014/07/09 01:50:42
Please name these methods "ReadCertChain" and "Wri
brandonsalmon
2014/07/09 01:58:50
Done.
| |
274 | |
270 // Sets request_ and fields derived from it. | 275 // Sets request_ and fields derived from it. |
271 void SetRequest(const BoundNetLog& net_log, const HttpRequestInfo* request); | 276 void SetRequest(const BoundNetLog& net_log, const HttpRequestInfo* request); |
272 | 277 |
273 // Returns true if the request should be handled exclusively by the network | 278 // Returns true if the request should be handled exclusively by the network |
274 // layer (skipping the cache entirely). | 279 // layer (skipping the cache entirely). |
275 bool ShouldPassThrough(); | 280 bool ShouldPassThrough(); |
276 | 281 |
277 // Called to begin reading from the cache. Returns network error code. | 282 // Called to begin reading from the cache. Returns network error code. |
278 int BeginCacheRead(); | 283 int BeginCacheRead(); |
279 | 284 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
455 | 460 |
456 BeforeNetworkStartCallback before_network_start_callback_; | 461 BeforeNetworkStartCallback before_network_start_callback_; |
457 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 462 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
458 | 463 |
459 DISALLOW_COPY_AND_ASSIGN(Transaction); | 464 DISALLOW_COPY_AND_ASSIGN(Transaction); |
460 }; | 465 }; |
461 | 466 |
462 } // namespace net | 467 } // namespace net |
463 | 468 |
464 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 469 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |