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 #include "net/http/http_cache_lookup_manager.h" | 5 #include "net/http/http_cache_lookup_manager.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "net/base/load_flags.h" | 8 #include "net/base/load_flags.h" |
8 | 9 |
9 namespace net { | 10 namespace net { |
10 | 11 |
11 HttpCacheLookupManager::LookupTransaction::LookupTransaction( | 12 HttpCacheLookupManager::LookupTransaction::LookupTransaction( |
12 std::unique_ptr<ServerPushHelper> server_push_helper) | 13 std::unique_ptr<ServerPushHelper> server_push_helper) |
13 : push_helper_(std::move(server_push_helper)), | 14 : push_helper_(std::move(server_push_helper)), |
14 request_(new HttpRequestInfo()), | 15 request_(new HttpRequestInfo()), |
15 transaction_(nullptr) {} | 16 transaction_(nullptr) {} |
16 | 17 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 auto it = lookup_transactions_.find(url); | 62 auto it = lookup_transactions_.find(url); |
62 DCHECK(it != lookup_transactions_.end()); | 63 DCHECK(it != lookup_transactions_.end()); |
63 | 64 |
64 if (rv == OK) | 65 if (rv == OK) |
65 it->second->CancelPush(); | 66 it->second->CancelPush(); |
66 | 67 |
67 lookup_transactions_.erase(it); | 68 lookup_transactions_.erase(it); |
68 } | 69 } |
69 | 70 |
70 } // namespace net | 71 } // namespace net |
OLD | NEW |