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 CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 struct SearchResultInfo { | 27 struct SearchResultInfo { |
28 SearchResultInfo(const FilePath& in_path, bool in_is_directory) | 28 SearchResultInfo(const FilePath& in_path, bool in_is_directory) |
29 : path(in_path), | 29 : path(in_path), |
30 is_directory(in_is_directory) { | 30 is_directory(in_is_directory) { |
31 } | 31 } |
32 | 32 |
33 FilePath path; | 33 FilePath path; |
34 bool is_directory; | 34 bool is_directory; |
35 }; | 35 }; |
36 | 36 |
37 // Used for file operations like removing files. | |
38 typedef base::Callback<void(GDataFileError error)> | |
39 FileOperationCallback; | |
40 | |
41 // Used to get files from the file system. | 37 // Used to get files from the file system. |
42 typedef base::Callback<void(GDataFileError error, | 38 typedef base::Callback<void(GDataFileError error, |
43 const FilePath& file_path, | 39 const FilePath& file_path, |
44 const std::string& mime_type, | 40 const std::string& mime_type, |
45 GDataFileType file_type)> GetFileCallback; | 41 GDataFileType file_type)> GetFileCallback; |
46 | 42 |
47 // Used to get entry info from the file system, with the gdata file path. | 43 // Used to get entry info from the file system, with the gdata file path. |
48 // If |error| is not PLATFORM_FILE_OK, |file_info| is set to NULL. | 44 // If |error| is not PLATFORM_FILE_OK, |file_info| is set to NULL. |
49 // | 45 // |
50 // |gdata_file_path| parameter is provided as GDataEntryProto does not contain | 46 // |gdata_file_path| parameter is provided as GDataEntryProto does not contain |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 const FilePath& virtual_dir_path, | 341 const FilePath& virtual_dir_path, |
346 scoped_ptr<DocumentEntry> entry, | 342 scoped_ptr<DocumentEntry> entry, |
347 const FilePath& file_content_path, | 343 const FilePath& file_content_path, |
348 GDataCache::FileOperationType cache_operation, | 344 GDataCache::FileOperationType cache_operation, |
349 const base::Closure& callback) = 0; | 345 const base::Closure& callback) = 0; |
350 }; | 346 }; |
351 | 347 |
352 } // namespace gdata | 348 } // namespace gdata |
353 | 349 |
354 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ | 350 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ |
OLD | NEW |