Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Side by Side Diff: chrome/browser/chromeos/file_manager/fileapi_util.h

Issue 1455403003: Add an option to specify requested fields for fetching metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Checks if a directory exists at |directory_path| absolute path. 148 // Checks if a directory exists at |directory_path| absolute path.
149 void CheckIfDirectoryExists( 149 void CheckIfDirectoryExists(
150 scoped_refptr<storage::FileSystemContext> file_system_context, 150 scoped_refptr<storage::FileSystemContext> file_system_context,
151 const base::FilePath& directory_path, 151 const base::FilePath& directory_path,
152 const storage::FileSystemOperationRunner::StatusCallback& callback); 152 const storage::FileSystemOperationRunner::StatusCallback& callback);
153 153
154 // Get metadata for an entry at |entry_path| absolute path. 154 // Get metadata for an entry at |entry_path| absolute path.
155 void GetMetadataForPath( 155 void GetMetadataForPath(
156 scoped_refptr<storage::FileSystemContext> file_system_context, 156 scoped_refptr<storage::FileSystemContext> file_system_context,
157 const base::FilePath& entry_path, 157 const base::FilePath& entry_path,
158 int fields,
158 const storage::FileSystemOperationRunner::GetMetadataCallback& callback); 159 const storage::FileSystemOperationRunner::GetMetadataCallback& callback);
159 160
160 // Obtains isolated file system URL from |virtual_path| pointing a file in the 161 // Obtains isolated file system URL from |virtual_path| pointing a file in the
161 // external file system. 162 // external file system.
162 storage::FileSystemURL CreateIsolatedURLFromVirtualPath( 163 storage::FileSystemURL CreateIsolatedURLFromVirtualPath(
163 const storage::FileSystemContext& context, 164 const storage::FileSystemContext& context,
164 const GURL& origin, 165 const GURL& origin,
165 const base::FilePath& virtual_path); 166 const base::FilePath& virtual_path);
166 167
167 } // namespace util 168 } // namespace util
168 } // namespace file_manager 169 } // namespace file_manager
169 170
170 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_ 171 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILEAPI_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698