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 #include "net/http/http_cache.h" | 5 #include "net/http/http_cache.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "net/disk_cache/disk_cache.h" | 36 #include "net/disk_cache/disk_cache.h" |
37 #include "net/http/disk_cache_based_quic_server_info.h" | 37 #include "net/http/disk_cache_based_quic_server_info.h" |
38 #include "net/http/http_cache_transaction.h" | 38 #include "net/http/http_cache_transaction.h" |
39 #include "net/http/http_network_layer.h" | 39 #include "net/http/http_network_layer.h" |
40 #include "net/http/http_network_session.h" | 40 #include "net/http/http_network_session.h" |
41 #include "net/http/http_request_info.h" | 41 #include "net/http/http_request_info.h" |
42 #include "net/http/http_response_headers.h" | 42 #include "net/http/http_response_headers.h" |
43 #include "net/http/http_response_info.h" | 43 #include "net/http/http_response_info.h" |
44 #include "net/http/http_util.h" | 44 #include "net/http/http_util.h" |
45 #include "net/log/net_log_with_source.h" | 45 #include "net/log/net_log_with_source.h" |
46 #include "net/quic/core/crypto/quic_server_info.h" | 46 #include "net/quic/chromium/quic_server_info.h" |
47 | 47 |
48 #if defined(OS_POSIX) | 48 #if defined(OS_POSIX) |
49 #include <unistd.h> | 49 #include <unistd.h> |
50 #endif | 50 #endif |
51 | 51 |
52 namespace net { | 52 namespace net { |
53 | 53 |
54 HttpCache::DefaultBackend::DefaultBackend( | 54 HttpCache::DefaultBackend::DefaultBackend( |
55 CacheType type, | 55 CacheType type, |
56 BackendType backend_type, | 56 BackendType backend_type, |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 building_backend_ = false; | 1152 building_backend_ = false; |
1153 DeletePendingOp(pending_op); | 1153 DeletePendingOp(pending_op); |
1154 } | 1154 } |
1155 | 1155 |
1156 // The cache may be gone when we return from the callback. | 1156 // The cache may be gone when we return from the callback. |
1157 if (!item->DoCallback(result, disk_cache_.get())) | 1157 if (!item->DoCallback(result, disk_cache_.get())) |
1158 item->NotifyTransaction(result, NULL); | 1158 item->NotifyTransaction(result, NULL); |
1159 } | 1159 } |
1160 | 1160 |
1161 } // namespace net | 1161 } // namespace net |
OLD | NEW |