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 CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ |
6 #define CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 bool accepted, | 80 bool accepted, |
81 const std::string& name, | 81 const std::string& name, |
82 const FilePath& root_path); | 82 const FilePath& root_path); |
83 | 83 |
84 // Message handlers for regular file system operations. | 84 // Message handlers for regular file system operations. |
85 void DidSucceed(int request_id); | 85 void DidSucceed(int request_id); |
86 void DidReadMetadata(int request_id, | 86 void DidReadMetadata(int request_id, |
87 const base::PlatformFileInfo& file_info); | 87 const base::PlatformFileInfo& file_info); |
88 void DidReadDirectory( | 88 void DidReadDirectory( |
89 int request_id, | 89 int request_id, |
90 const std::vector<base::file_util_proxy::Entry>& entries, | 90 const std::vector<base::FileUtilProxy::Entry>& entries, |
91 bool has_more); | 91 bool has_more); |
92 void DidFail(int request_id, base::PlatformFileError error_code); | 92 void DidFail(int request_id, base::PlatformFileError error_code); |
93 void DidWrite(int request_id, int64 bytes, bool complete); | 93 void DidWrite(int request_id, int64 bytes, bool complete); |
94 | 94 |
95 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 95 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 97 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ | 100 #endif // CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ |
OLD | NEW |