| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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. | 
| 11 // | 11 // | 
| 12 // See HttpTransactionFactory and HttpTransaction for more details. | 12 // See HttpTransactionFactory and HttpTransaction for more details. | 
| 13 | 13 | 
| 14 #ifndef NET_HTTP_HTTP_CACHE_H_ | 14 #ifndef NET_HTTP_HTTP_CACHE_H_ | 
| 15 #define NET_HTTP_HTTP_CACHE_H_ | 15 #define NET_HTTP_HTTP_CACHE_H_ | 
| 16 | 16 | 
| 17 #include <list> | 17 #include <list> | 
| 18 #include <string> | 18 #include <set> | 
| 19 | 19 | 
| 20 #include "base/basictypes.h" | 20 #include "base/basictypes.h" | 
| 21 #include "base/hash_tables.h" | 21 #include "base/hash_tables.h" | 
| 22 #include "base/task.h" | 22 #include "base/task.h" | 
| 23 #include "net/http/http_transaction_factory.h" | 23 #include "net/http/http_transaction_factory.h" | 
| 24 | 24 | 
| 25 namespace disk_cache { | 25 namespace disk_cache { | 
| 26 class Backend; | 26 class Backend; | 
| 27 class Entry; | 27 class Entry; | 
| 28 } | 28 } | 
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 166 | 166 | 
| 167   RevocableStore transactions_; | 167   RevocableStore transactions_; | 
| 168 | 168 | 
| 169   DISALLOW_COPY_AND_ASSIGN(HttpCache); | 169   DISALLOW_COPY_AND_ASSIGN(HttpCache); | 
| 170 }; | 170 }; | 
| 171 | 171 | 
| 172 }  // namespace net | 172 }  // namespace net | 
| 173 | 173 | 
| 174 #endif  // NET_HTTP_HTTP_CACHE_H_ | 174 #endif  // NET_HTTP_HTTP_CACHE_H_ | 
| 175 | 175 | 
| OLD | NEW | 
|---|