OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // callback. | 90 // callback. |
91 static bool GetFileInfo( | 91 static bool GetFileInfo( |
92 const FileSystemOperationContext& context, | 92 const FileSystemOperationContext& context, |
93 scoped_refptr<MessageLoopProxy> message_loop_proxy, | 93 scoped_refptr<MessageLoopProxy> message_loop_proxy, |
94 const FilePath& file_path, | 94 const FilePath& file_path, |
95 const GetFileInfoCallback& callback); | 95 const GetFileInfoCallback& callback); |
96 | 96 |
97 static bool ReadDirectory(const FileSystemOperationContext& context, | 97 static bool ReadDirectory(const FileSystemOperationContext& context, |
98 scoped_refptr<MessageLoopProxy> message_loop_proxy, | 98 scoped_refptr<MessageLoopProxy> message_loop_proxy, |
99 const FilePath& file_path, | 99 const FilePath& file_path, |
100 ReadDirectoryCallback* callback); | 100 const ReadDirectoryCallback& callback); |
101 | 101 |
102 // Creates directory at given path. It's an error to create | 102 // Creates directory at given path. It's an error to create |
103 // if |exclusive| is true and dir already exists. | 103 // if |exclusive| is true and dir already exists. |
104 static bool CreateDirectory( | 104 static bool CreateDirectory( |
105 const FileSystemOperationContext& context, | 105 const FileSystemOperationContext& context, |
106 scoped_refptr<MessageLoopProxy> message_loop_proxy, | 106 scoped_refptr<MessageLoopProxy> message_loop_proxy, |
107 const FilePath& file_path, | 107 const FilePath& file_path, |
108 bool exclusive, | 108 bool exclusive, |
109 bool recursive, | 109 bool recursive, |
110 StatusCallback* callback); | 110 StatusCallback* callback); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 int64 length, | 159 int64 length, |
160 StatusCallback* callback); | 160 StatusCallback* callback); |
161 | 161 |
162 private: | 162 private: |
163 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemFileUtilProxy); | 163 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemFileUtilProxy); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace fileapi | 166 } // namespace fileapi |
167 | 167 |
168 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ | 168 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ |
OLD | NEW |