| 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/blockfile/file.h" | 5 #include "net/disk_cache/blockfile/file.h" |
| 6 | 6 |
| 7 #include <limits.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 10 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 11 #include "net/disk_cache/disk_cache.h" | 13 #include "net/disk_cache/disk_cache.h" |
| 12 | 14 |
| 13 namespace { | 15 namespace { |
| 14 | 16 |
| 15 // Structure used for asynchronous operations. | 17 // Structure used for asynchronous operations. |
| 16 struct MyOverlapped { | 18 struct MyOverlapped { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 base::MessageLoopForIO::IOHandler* handler = g_completion_handler.Pointer(); | 251 base::MessageLoopForIO::IOHandler* handler = g_completion_handler.Pointer(); |
| 250 base::MessageLoopForIO::current()->WaitForIOCompletion(100, handler); | 252 base::MessageLoopForIO::current()->WaitForIOCompletion(100, handler); |
| 251 } | 253 } |
| 252 } | 254 } |
| 253 | 255 |
| 254 // Static. | 256 // Static. |
| 255 void File::DropPendingIO() { | 257 void File::DropPendingIO() { |
| 256 } | 258 } |
| 257 | 259 |
| 258 } // namespace disk_cache | 260 } // namespace disk_cache |
| OLD | NEW |