| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 scoped_ptr<GDataEntryProto> file_proto)> | 55 scoped_ptr<GDataEntryProto> file_proto)> |
| 56 GetEntryInfoWithFilePathCallback; | 56 GetEntryInfoWithFilePathCallback; |
| 57 | 57 |
| 58 // Used to get entry info from the file system. | 58 // Used to get entry info from the file system. |
| 59 // If |error| is not PLATFORM_FILE_OK, |entry_info| is set to NULL. | 59 // If |error| is not PLATFORM_FILE_OK, |entry_info| is set to NULL. |
| 60 typedef base::Callback<void(GDataFileError error, | 60 typedef base::Callback<void(GDataFileError error, |
| 61 scoped_ptr<GDataEntryProto> entry_proto)> | 61 scoped_ptr<GDataEntryProto> entry_proto)> |
| 62 GetEntryInfoCallback; | 62 GetEntryInfoCallback; |
| 63 | 63 |
| 64 // Used to read a directory from the file system. | 64 // Used to read a directory from the file system. |
| 65 // If |error| is not PLATFORM_FILE_OK, |directory_info| is set to NULL. | 65 // If |error| is not PLATFORM_FILE_OK, |entries| is set to NULL. |
| 66 // |entries| are contents, both files and directories, of the directory. |
| 67 typedef std::vector<GDataEntryProto> GDataEntryProtoVector; |
| 66 typedef base::Callback<void(GDataFileError error, | 68 typedef base::Callback<void(GDataFileError error, |
| 67 bool hide_hosted_documents, | 69 bool hide_hosted_documents, |
| 68 scoped_ptr<GDataDirectoryProto> directory_proto)> | 70 scoped_ptr<GDataEntryProtoVector> entries)> |
| 69 ReadDirectoryCallback; | 71 ReadDirectoryCallback; |
| 70 | 72 |
| 71 // Used to get drive content search results. | 73 // Used to get drive content search results. |
| 72 // If |error| is not PLATFORM_FILE_OK, |result_paths| is empty. | 74 // If |error| is not PLATFORM_FILE_OK, |result_paths| is empty. |
| 73 typedef base::Callback<void( | 75 typedef base::Callback<void( |
| 74 GDataFileError error, | 76 GDataFileError error, |
| 75 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback; | 77 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback; |
| 76 | 78 |
| 77 // Used to open files from the file system. |file_path| is the path on the local | 79 // Used to open files from the file system. |file_path| is the path on the local |
| 78 // file system for the opened file. | 80 // file system for the opened file. |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 const FilePath& virtual_dir_path, | 345 const FilePath& virtual_dir_path, |
| 344 scoped_ptr<DocumentEntry> entry, | 346 scoped_ptr<DocumentEntry> entry, |
| 345 const FilePath& file_content_path, | 347 const FilePath& file_content_path, |
| 346 GDataCache::FileOperationType cache_operation, | 348 GDataCache::FileOperationType cache_operation, |
| 347 const base::Closure& callback) = 0; | 349 const base::Closure& callback) = 0; |
| 348 }; | 350 }; |
| 349 | 351 |
| 350 } // namespace gdata | 352 } // namespace gdata |
| 351 | 353 |
| 352 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ | 354 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |