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 WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_UTIL_H_ | 5 #ifndef WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_UTIL_H_ |
6 #define WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_UTIL_H_ | 6 #define WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const GURL& origin_url, | 151 const GURL& origin_url, |
152 const std::string& filesystem_id, | 152 const std::string& filesystem_id, |
153 const std::string& optional_root_name); | 153 const std::string& optional_root_name); |
154 | 154 |
155 // Returns the root URI for an external filesystem for origin |origin_url| | 155 // Returns the root URI for an external filesystem for origin |origin_url| |
156 // and |mount_name|. | 156 // and |mount_name|. |
157 WEBKIT_STORAGE_COMMON_EXPORT std::string GetExternalFileSystemRootURIString( | 157 WEBKIT_STORAGE_COMMON_EXPORT std::string GetExternalFileSystemRootURIString( |
158 const GURL& origin_url, | 158 const GURL& origin_url, |
159 const std::string& mount_name); | 159 const std::string& mount_name); |
160 | 160 |
| 161 // Translates the net::Error to base::PlatformFileError. |
| 162 WEBKIT_STORAGE_COMMON_EXPORT base::PlatformFileError |
| 163 NetErrorToPlatformFileError(int error); |
| 164 |
161 } // namespace fileapi | 165 } // namespace fileapi |
162 | 166 |
163 #endif // WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_UTIL_H_ | 167 #endif // WEBKIT_COMMON_FILEAPI_FILE_SYSTEM_UTIL_H_ |
OLD | NEW |