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 // If |error| is not PLATFORM_FILE_OK, |entry_info| is set to NULL. | 55 // If |error| is not PLATFORM_FILE_OK, |entry_info| is set to NULL. |
56 typedef base::Callback<void(GDataFileError error, | 56 typedef base::Callback<void(GDataFileError error, |
57 scoped_ptr<GDataEntryProto> entry_proto)> | 57 scoped_ptr<GDataEntryProto> entry_proto)> |
58 GetEntryInfoCallback; | 58 GetEntryInfoCallback; |
59 | 59 |
60 // Used to read a directory from the file system. | 60 // Used to read a directory from the file system. |
61 // If |error| is not PLATFORM_FILE_OK, |entries| is set to NULL. | 61 // If |error| is not PLATFORM_FILE_OK, |entries| is set to NULL. |
62 // |entries| are contents, both files and directories, of the directory. | 62 // |entries| are contents, both files and directories, of the directory. |
63 typedef std::vector<GDataEntryProto> GDataEntryProtoVector; | 63 typedef std::vector<GDataEntryProto> GDataEntryProtoVector; |
64 typedef base::Callback<void(GDataFileError error, | 64 typedef base::Callback<void(GDataFileError error, |
| 65 bool hide_hosted_documents, |
65 scoped_ptr<GDataEntryProtoVector> entries)> | 66 scoped_ptr<GDataEntryProtoVector> entries)> |
66 ReadDirectoryCallback; | 67 ReadDirectoryCallback; |
67 | 68 |
68 // Used to get drive content search results. | 69 // Used to get drive content search results. |
69 // If |error| is not PLATFORM_FILE_OK, |result_paths| is empty. | 70 // If |error| is not PLATFORM_FILE_OK, |result_paths| is empty. |
70 typedef base::Callback<void( | 71 typedef base::Callback<void( |
71 GDataFileError error, | 72 GDataFileError error, |
72 const GURL& next_feed, | 73 const GURL& next_feed, |
73 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback; | 74 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback; |
74 | 75 |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 const FilePath& virtual_dir_path, | 355 const FilePath& virtual_dir_path, |
355 scoped_ptr<DocumentEntry> entry, | 356 scoped_ptr<DocumentEntry> entry, |
356 const FilePath& file_content_path, | 357 const FilePath& file_content_path, |
357 GDataCache::FileOperationType cache_operation, | 358 GDataCache::FileOperationType cache_operation, |
358 const base::Closure& callback) = 0; | 359 const base::Closure& callback) = 0; |
359 }; | 360 }; |
360 | 361 |
361 } // namespace gdata | 362 } // namespace gdata |
362 | 363 |
363 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ | 364 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ |
OLD | NEW |