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 7234 (any exceptions are called out in the code). | 7 // caching logic follows RFC 7234 (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 29 matching lines...) Expand all Loading... |
40 class SingleThreadTaskRunner; | 40 class SingleThreadTaskRunner; |
41 } // namespace base | 41 } // namespace base |
42 | 42 |
43 namespace disk_cache { | 43 namespace disk_cache { |
44 class Backend; | 44 class Backend; |
45 class Entry; | 45 class Entry; |
46 } // namespace disk_cache | 46 } // namespace disk_cache |
47 | 47 |
48 namespace net { | 48 namespace net { |
49 | 49 |
50 class CertVerifier; | |
51 class ChannelIDService; | |
52 class HostResolver; | |
53 class HttpAuthHandlerFactory; | |
54 class HttpNetworkSession; | 50 class HttpNetworkSession; |
55 class HttpResponseInfo; | 51 class HttpResponseInfo; |
56 class HttpServerProperties; | |
57 class IOBuffer; | 52 class IOBuffer; |
58 class NetLog; | 53 class NetLog; |
59 class NetworkDelegate; | |
60 class ProxyService; | |
61 class SSLConfigService; | |
62 class TransportSecurityState; | |
63 class ViewCacheHelper; | 54 class ViewCacheHelper; |
64 struct HttpRequestInfo; | 55 struct HttpRequestInfo; |
65 | 56 |
66 class NET_EXPORT HttpCache : public HttpTransactionFactory, | 57 class NET_EXPORT HttpCache : public HttpTransactionFactory, |
67 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 58 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
68 public: | 59 public: |
69 // The cache mode of operation. | 60 // The cache mode of operation. |
70 enum Mode { | 61 enum Mode { |
71 // Normal mode just behaves like a standard web cache. | 62 // Normal mode just behaves like a standard web cache. |
72 NORMAL = 0, | 63 NORMAL = 0, |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 std::unique_ptr<base::Clock> clock_; | 423 std::unique_ptr<base::Clock> clock_; |
433 | 424 |
434 base::WeakPtrFactory<HttpCache> weak_factory_; | 425 base::WeakPtrFactory<HttpCache> weak_factory_; |
435 | 426 |
436 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 427 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
437 }; | 428 }; |
438 | 429 |
439 } // namespace net | 430 } // namespace net |
440 | 431 |
441 #endif // NET_HTTP_HTTP_CACHE_H_ | 432 #endif // NET_HTTP_HTTP_CACHE_H_ |
OLD | NEW |