| 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 CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 const base::File::Info& file_info); | 140 const base::File::Info& file_info); |
| 141 void OnDidCreateSnapshotFile(int request_id, | 141 void OnDidCreateSnapshotFile(int request_id, |
| 142 const base::File::Info& file_info, | 142 const base::File::Info& file_info, |
| 143 const base::FilePath& platform_path); | 143 const base::FilePath& platform_path); |
| 144 void OnDidReadDirectory(int request_id, | 144 void OnDidReadDirectory(int request_id, |
| 145 const std::vector<storage::DirectoryEntry>& entries, | 145 const std::vector<storage::DirectoryEntry>& entries, |
| 146 bool has_more); | 146 bool has_more); |
| 147 void OnDidFail(int request_id, base::File::Error error_code); | 147 void OnDidFail(int request_id, base::File::Error error_code); |
| 148 void OnDidWrite(int request_id, int64_t bytes, bool complete); | 148 void OnDidWrite(int request_id, int64_t bytes, bool complete); |
| 149 | 149 |
| 150 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_; | 150 IDMap<std::unique_ptr<CallbackDispatcher>> dispatchers_; |
| 151 | 151 |
| 152 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 152 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace content | 155 } // namespace content |
| 156 | 156 |
| 157 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 157 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| OLD | NEW |