Chromium Code Reviews| 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. They do not yet have their | |
| 272 // own State values. | |
| 273 void DoCertChainRead(); | |
|
rvargas (doing something else)
2014/07/09 01:25:36
nit: Do not use DoFoo here as that suggests an imp
brandonsalmon
2014/07/09 01:50:43
Changed this.
| |
| 274 void DoCertChainWrite(); | |
| 275 | |
| 270 // Sets request_ and fields derived from it. | 276 // Sets request_ and fields derived from it. |
| 271 void SetRequest(const BoundNetLog& net_log, const HttpRequestInfo* request); | 277 void SetRequest(const BoundNetLog& net_log, const HttpRequestInfo* request); |
| 272 | 278 |
| 273 // Returns true if the request should be handled exclusively by the network | 279 // Returns true if the request should be handled exclusively by the network |
| 274 // layer (skipping the cache entirely). | 280 // layer (skipping the cache entirely). |
| 275 bool ShouldPassThrough(); | 281 bool ShouldPassThrough(); |
| 276 | 282 |
| 277 // Called to begin reading from the cache. Returns network error code. | 283 // Called to begin reading from the cache. Returns network error code. |
| 278 int BeginCacheRead(); | 284 int BeginCacheRead(); |
| 279 | 285 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 455 | 461 |
| 456 BeforeNetworkStartCallback before_network_start_callback_; | 462 BeforeNetworkStartCallback before_network_start_callback_; |
| 457 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 463 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 458 | 464 |
| 459 DISALLOW_COPY_AND_ASSIGN(Transaction); | 465 DISALLOW_COPY_AND_ASSIGN(Transaction); |
| 460 }; | 466 }; |
| 461 | 467 |
| 462 } // namespace net | 468 } // namespace net |
| 463 | 469 |
| 464 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 470 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |