OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 | 10 |
11 #if defined(OS_POSIX) | 11 #if defined(OS_POSIX) |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/format_macros.h" | 16 #include "base/format_macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/pickle.h" | 19 #include "base/pickle.h" |
20 #include "base/stl_util-inl.h" | 20 #include "base/stl_util.h" |
21 #include "base/string_number_conversions.h" | 21 #include "base/string_number_conversions.h" |
22 #include "base/string_util.h" | 22 #include "base/string_util.h" |
23 #include "base/stringprintf.h" | 23 #include "base/stringprintf.h" |
24 #include "net/base/io_buffer.h" | 24 #include "net/base/io_buffer.h" |
25 #include "net/base/load_flags.h" | 25 #include "net/base/load_flags.h" |
26 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
27 #include "net/disk_cache/disk_cache.h" | 27 #include "net/disk_cache/disk_cache.h" |
28 #include "net/http/disk_cache_based_ssl_host_info.h" | 28 #include "net/http/disk_cache_based_ssl_host_info.h" |
29 #include "net/http/http_cache_transaction.h" | 29 #include "net/http/http_cache_transaction.h" |
30 #include "net/http/http_network_layer.h" | 30 #include "net/http/http_network_layer.h" |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 building_backend_ = false; | 1133 building_backend_ = false; |
1134 DeletePendingOp(pending_op); | 1134 DeletePendingOp(pending_op); |
1135 } | 1135 } |
1136 | 1136 |
1137 // The cache may be gone when we return from the callback. | 1137 // The cache may be gone when we return from the callback. |
1138 if (!item->DoCallback(result, backend)) | 1138 if (!item->DoCallback(result, backend)) |
1139 item->NotifyTransaction(result, NULL); | 1139 item->NotifyTransaction(result, NULL); |
1140 } | 1140 } |
1141 | 1141 |
1142 } // namespace net | 1142 } // namespace net |
OLD | NEW |