| 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/disk_cache/file.h" | 5 #include "net/disk_cache/file.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 | 8 |
| 9 #include "base/location.h" |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
| 11 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 12 #include "net/disk_cache/disk_cache.h" | 13 #include "net/disk_cache/disk_cache.h" |
| 13 #include "net/disk_cache/in_flight_io.h" | 14 #include "net/disk_cache/in_flight_io.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 // This class represents a single asynchronous IO operation while it is being | 18 // This class represents a single asynchronous IO operation while it is being |
| 18 // bounced between threads. | 19 // bounced between threads. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 return false; | 293 return false; |
| 293 | 294 |
| 294 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback); | 295 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback); |
| 295 | 296 |
| 296 if (completed) | 297 if (completed) |
| 297 *completed = false; | 298 *completed = false; |
| 298 return true; | 299 return true; |
| 299 } | 300 } |
| 300 | 301 |
| 301 } // namespace disk_cache | 302 } // namespace disk_cache |
| OLD | NEW |