| 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 a HttpTransactionFactory implementation that can be | 5 // This file declares a HttpTransactionFactory implementation that can be |
| 6 // layered on top of another HttpTransactionFactory to add HTTP caching. The | 6 // layered on top of another HttpTransactionFactory to add HTTP caching. The |
| 7 // caching logic follows RFC 2616 (any exceptions are called out in the code). | 7 // caching logic follows RFC 2616 (any exceptions are called out in the code). |
| 8 // | 8 // |
| 9 // The HttpCache takes a disk_cache::Backend as a parameter, and uses that for | 9 // The HttpCache takes a disk_cache::Backend as a parameter, and uses that for |
| 10 // the cache storage. | 10 // the cache storage. |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // Variables ---------------------------------------------------------------- | 382 // Variables ---------------------------------------------------------------- |
| 383 | 383 |
| 384 NetLog* net_log_; | 384 NetLog* net_log_; |
| 385 | 385 |
| 386 // Used when lazily constructing the disk_cache_. | 386 // Used when lazily constructing the disk_cache_. |
| 387 scoped_ptr<BackendFactory> backend_factory_; | 387 scoped_ptr<BackendFactory> backend_factory_; |
| 388 bool building_backend_; | 388 bool building_backend_; |
| 389 | 389 |
| 390 Mode mode_; | 390 Mode mode_; |
| 391 | 391 |
| 392 const scoped_ptr<QuicServerInfoFactoryAdaptor> quic_server_info_factory_; | 392 scoped_ptr<QuicServerInfoFactoryAdaptor> quic_server_info_factory_; |
| 393 | 393 |
| 394 scoped_ptr<HttpTransactionFactory> network_layer_; | 394 scoped_ptr<HttpTransactionFactory> network_layer_; |
| 395 | 395 |
| 396 scoped_ptr<disk_cache::Backend> disk_cache_; | 396 scoped_ptr<disk_cache::Backend> disk_cache_; |
| 397 | 397 |
| 398 // The set of active entries indexed by cache key. | 398 // The set of active entries indexed by cache key. |
| 399 ActiveEntriesMap active_entries_; | 399 ActiveEntriesMap active_entries_; |
| 400 | 400 |
| 401 // The set of doomed entries. | 401 // The set of doomed entries. |
| 402 ActiveEntriesSet doomed_entries_; | 402 ActiveEntriesSet doomed_entries_; |
| 403 | 403 |
| 404 // The set of entries "under construction". | 404 // The set of entries "under construction". |
| 405 PendingOpsMap pending_ops_; | 405 PendingOpsMap pending_ops_; |
| 406 | 406 |
| 407 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 407 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 409 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 } // namespace net | 412 } // namespace net |
| 413 | 413 |
| 414 #endif // NET_HTTP_HTTP_CACHE_H_ | 414 #endif // NET_HTTP_HTTP_CACHE_H_ |
| OLD | NEW |