OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/blockfile/file.h" | 5 #include "net/disk_cache/blockfile/file.h" |
6 | 6 |
| 7 #include <limits.h> |
7 #include <stdint.h> | 8 #include <stdint.h> |
8 | 9 |
9 #include <limits> | 10 #include <limits> |
10 | 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/location.h" | 13 #include "base/location.h" |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/threading/worker_pool.h" | 16 #include "base/threading/worker_pool.h" |
16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 return false; | 294 return false; |
294 | 295 |
295 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback); | 296 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback); |
296 | 297 |
297 if (completed) | 298 if (completed) |
298 *completed = false; | 299 *completed = false; |
299 return true; | 300 return true; |
300 } | 301 } |
301 | 302 |
302 } // namespace disk_cache | 303 } // namespace disk_cache |
OLD | NEW |