| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef NET_HTTP_CACHE_LOOKUP_MANAGER_H_ | 5 #ifndef NET_HTTP_HTTP_CACHE_LOOKUP_MANAGER_H_ |
| 6 #define NET_HTTP_CACHE_LOOKUP_MANAGER_H_ | 6 #define NET_HTTP_HTTP_CACHE_LOOKUP_MANAGER_H_ |
| 7 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 #include "net/http/http_cache.h" | 9 #include "net/http/http_cache.h" |
| 10 #include "net/http/http_cache_transaction.h" | 10 #include "net/http/http_cache_transaction.h" |
| 11 #include "net/spdy/server_push_delegate.h" | 11 #include "net/spdy/server_push_delegate.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 // An implementation of ServerPushDelegate that issues an HttpCache::Transaction | 15 // An implementation of ServerPushDelegate that issues an HttpCache::Transaction |
| 16 // to lookup whether the response to the pushed URL is cached and cancel the | 16 // to lookup whether the response to the pushed URL is cached and cancel the |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 NetLogWithSource net_log_; | 54 NetLogWithSource net_log_; |
| 55 // HttpCache must outlive the HttpCacheLookupManager. | 55 // HttpCache must outlive the HttpCacheLookupManager. |
| 56 HttpCache* http_cache_; | 56 HttpCache* http_cache_; |
| 57 std::map<GURL, std::unique_ptr<LookupTransaction>> lookup_transactions_; | 57 std::map<GURL, std::unique_ptr<LookupTransaction>> lookup_transactions_; |
| 58 base::WeakPtrFactory<HttpCacheLookupManager> weak_factory_; | 58 base::WeakPtrFactory<HttpCacheLookupManager> weak_factory_; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace net | 61 } // namespace net |
| 62 | 62 |
| 63 #endif // NET_HTTP_CACHE_LOOKUP_MANAGER_H_ | 63 #endif // NET_HTTP_HTTP_CACHE_LOOKUP_MANAGER_H_ |
| OLD | NEW |