| 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 #ifndef NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_IO_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_IO_H_ |
| 6 #define NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_IO_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_IO_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class TaskRunner; | 16 class TaskRunner; |
| 16 } // namespace base | 17 } // namespace base |
| 17 | 18 |
| 18 namespace disk_cache { | 19 namespace disk_cache { |
| 19 | 20 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 bool running_; // True after the first posted operation completes. | 133 bool running_; // True after the first posted operation completes. |
| 133 bool single_thread_; // True if we only have one thread. | 134 bool single_thread_; // True if we only have one thread. |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(InFlightIO); | 136 DISALLOW_COPY_AND_ASSIGN(InFlightIO); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace disk_cache | 139 } // namespace disk_cache |
| 139 | 140 |
| 140 #endif // NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_IO_H_ | 141 #endif // NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_IO_H_ |
| OLD | NEW |