| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // |created| of the callback argument is set true and |error code| | 68 // |created| of the callback argument is set true and |error code| |
| 69 // is set PLATFORM_FILE_OK. | 69 // is set PLATFORM_FILE_OK. |
| 70 // If the file already exists, |created| is set false and |error code| | 70 // If the file already exists, |created| is set false and |error code| |
| 71 // is set PLATFORM_FILE_OK. | 71 // is set PLATFORM_FILE_OK. |
| 72 // If the file hasn't existed but it couldn't be created for some other | 72 // If the file hasn't existed but it couldn't be created for some other |
| 73 // reasons, |created| is set false and |error code| indicates the error. | 73 // reasons, |created| is set false and |error code| indicates the error. |
| 74 static bool EnsureFileExists( | 74 static bool EnsureFileExists( |
| 75 const FileSystemOperationContext& context, | 75 const FileSystemOperationContext& context, |
| 76 scoped_refptr<MessageLoopProxy> message_loop_proxy, | 76 scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 77 const FilePath& file_path, | 77 const FilePath& file_path, |
| 78 EnsureFileExistsCallback* callback); | 78 const EnsureFileExistsCallback& callback); |
| 79 | 79 |
| 80 // Maps virtual file patch to its local physical location. | 80 // Maps virtual file patch to its local physical location. |
| 81 static bool GetLocalPath( | 81 static bool GetLocalPath( |
| 82 const FileSystemOperationContext& context, | 82 const FileSystemOperationContext& context, |
| 83 scoped_refptr<MessageLoopProxy> message_loop_proxy, | 83 scoped_refptr<MessageLoopProxy> message_loop_proxy, |
| 84 const FilePath& virtual_path, | 84 const FilePath& virtual_path, |
| 85 GetLocalPathCallback* callback); | 85 GetLocalPathCallback* callback); |
| 86 | 86 |
| 87 // Retrieves the information about a file. It is invalid to pass NULL for the | 87 // Retrieves the information about a file. It is invalid to pass NULL for the |
| 88 // callback. | 88 // callback. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 int64 length, | 157 int64 length, |
| 158 StatusCallback* callback); | 158 StatusCallback* callback); |
| 159 | 159 |
| 160 private: | 160 private: |
| 161 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemFileUtilProxy); | 161 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemFileUtilProxy); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace fileapi | 164 } // namespace fileapi |
| 165 | 165 |
| 166 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ | 166 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ |
| OLD | NEW |