| 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/disk_cache/file.h" | 5 #include "net/disk_cache/blockfile/file.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
| 13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 #include "net/disk_cache/disk_cache.h" | 15 #include "net/disk_cache/disk_cache.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 return net::ERR_CACHE_WRITE_FAILURE; | 193 return net::ERR_CACHE_WRITE_FAILURE; |
| 194 } | 194 } |
| 195 | 195 |
| 196 // This method actually makes sure that the last reference to the file doesn't | 196 // This method actually makes sure that the last reference to the file doesn't |
| 197 // go away on the worker pool. | 197 // go away on the worker pool. |
| 198 void File::OnOperationComplete(FileIOCallback* callback, int result) { | 198 void File::OnOperationComplete(FileIOCallback* callback, int result) { |
| 199 callback->OnFileIOComplete(result); | 199 callback->OnFileIOComplete(result); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace disk_cache | 202 } // namespace disk_cache |
| OLD | NEW |