Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: net/disk_cache/in_flight_backend_io.h

Issue 3522004: FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to non-POD structs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698