OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides File API related utilities. | 5 // This file provides File API related utilities. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ |
8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ | 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 const GURL& origin, | 144 const GURL& origin, |
145 const SelectedFileInfoList& selected_info_list, | 145 const SelectedFileInfoList& selected_info_list, |
146 const FileChooserFileInfoListCallback& callback); | 146 const FileChooserFileInfoListCallback& callback); |
147 | 147 |
148 // Checks if a directory exists at |url|. | 148 // Checks if a directory exists at |url|. |
149 void CheckIfDirectoryExists( | 149 void CheckIfDirectoryExists( |
150 scoped_refptr<storage::FileSystemContext> file_system_context, | 150 scoped_refptr<storage::FileSystemContext> file_system_context, |
151 const GURL& url, | 151 const GURL& url, |
152 const storage::FileSystemOperationRunner::StatusCallback& callback); | 152 const storage::FileSystemOperationRunner::StatusCallback& callback); |
153 | 153 |
| 154 // Get metadata for object at |url|. |
| 155 void GetMetadataForPath( |
| 156 scoped_refptr<storage::FileSystemContext> file_system_context, |
| 157 const GURL& url, |
| 158 const storage::FileSystemOperationRunner::GetMetadataCallback& callback); |
| 159 |
154 // Obtains isolated file system URL from |virtual_path| pointing a file in the | 160 // Obtains isolated file system URL from |virtual_path| pointing a file in the |
155 // external file system. | 161 // external file system. |
156 storage::FileSystemURL CreateIsolatedURLFromVirtualPath( | 162 storage::FileSystemURL CreateIsolatedURLFromVirtualPath( |
157 const storage::FileSystemContext& context, | 163 const storage::FileSystemContext& context, |
158 const GURL& origin, | 164 const GURL& origin, |
159 const base::FilePath& virtual_path); | 165 const base::FilePath& virtual_path); |
160 | 166 |
161 } // namespace util | 167 } // namespace util |
162 } // namespace file_manager | 168 } // namespace file_manager |
163 | 169 |
164 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ | 170 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ |
OLD | NEW |