| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BACKEND_IO_H_ | 5 #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
| 6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 OP_MAX_BACKEND, | 97 OP_MAX_BACKEND, |
| 98 OP_READ, | 98 OP_READ, |
| 99 OP_WRITE, | 99 OP_WRITE, |
| 100 OP_READ_SPARSE, | 100 OP_READ_SPARSE, |
| 101 OP_WRITE_SPARSE, | 101 OP_WRITE_SPARSE, |
| 102 OP_GET_RANGE, | 102 OP_GET_RANGE, |
| 103 OP_CANCEL_IO, | 103 OP_CANCEL_IO, |
| 104 OP_IS_READY | 104 OP_IS_READY |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 ~BackendIO() {} | 107 ~BackendIO(); |
| 108 | 108 |
| 109 void ExecuteBackendOperation(); | 109 void ExecuteBackendOperation(); |
| 110 void ExecuteEntryOperation(); | 110 void ExecuteEntryOperation(); |
| 111 | 111 |
| 112 BackendImpl* backend_; | 112 BackendImpl* backend_; |
| 113 net::CompletionCallback* callback_; | 113 net::CompletionCallback* callback_; |
| 114 Operation operation_; | 114 Operation operation_; |
| 115 net::CompletionCallbackImpl<BackendIO> my_callback_; | 115 net::CompletionCallbackImpl<BackendIO> my_callback_; |
| 116 | 116 |
| 117 // The arguments of all the operations we proxy: | 117 // The arguments of all the operations we proxy: |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 OperationList pending_ops_; // The list of operations to be posted. | 208 OperationList pending_ops_; // The list of operations to be posted. |
| 209 OperationList pending_entry_ops_; // Entry (async) operations to be posted. | 209 OperationList pending_entry_ops_; // Entry (async) operations to be posted. |
| 210 bool queue_entry_ops_; // True if we are queuing entry (async) operations. | 210 bool queue_entry_ops_; // True if we are queuing entry (async) operations. |
| 211 | 211 |
| 212 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); | 212 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace disk_cache | 215 } // namespace disk_cache |
| 216 | 216 |
| 217 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ | 217 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ |
| OLD | NEW |