| 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_IN_FLIGHT_IO_H_ | 5 #ifndef NET_DISK_CACHE_IN_FLIGHT_IO_H_ |
| 6 #define NET_DISK_CACHE_IN_FLIGHT_IO_H_ | 6 #define NET_DISK_CACHE_IN_FLIGHT_IO_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 | 13 |
| 14 namespace disk_cache { | 14 namespace disk_cache { |
| 15 | 15 |
| 16 class InFlightIO; | 16 class InFlightIO; |
| 17 | 17 |
| 18 // 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 |
| 19 // bounced between threads. | 19 // bounced between threads. |
| 20 class BackgroundIO : public base::RefCountedThreadSafe<BackgroundIO> { | 20 class BackgroundIO : public base::RefCountedThreadSafe<BackgroundIO> { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 bool running_; // True after the first posted operation completes. | 128 bool running_; // True after the first posted operation completes. |
| 129 bool single_thread_; // True if we only have one thread. | 129 bool single_thread_; // True if we only have one thread. |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(InFlightIO); | 131 DISALLOW_COPY_AND_ASSIGN(InFlightIO); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace disk_cache | 134 } // namespace disk_cache |
| 135 | 135 |
| 136 #endif // NET_DISK_CACHE_IN_FLIGHT_IO_H_ | 136 #endif // NET_DISK_CACHE_IN_FLIGHT_IO_H_ |
| OLD | NEW |