| 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_DRIVE_RESOURCE_METADATA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 void RemoveEntryOnUIThread(const std::string& resource_id, | 195 void RemoveEntryOnUIThread(const std::string& resource_id, |
| 196 const FileMoveCallback& callback); | 196 const FileMoveCallback& callback); |
| 197 | 197 |
| 198 // Synchronous version of RemoveEntryOnUIThread(). | 198 // Synchronous version of RemoveEntryOnUIThread(). |
| 199 FileError RemoveEntry(const std::string& resource_id, | 199 FileError RemoveEntry(const std::string& resource_id, |
| 200 base::FilePath* out_file_path); | 200 base::FilePath* out_file_path); |
| 201 | 201 |
| 202 // Finds an entry (a file or a directory) by |resource_id|. | 202 // Finds an entry (a file or a directory) by |resource_id|. |
| 203 // |callback| must not be null. | 203 // |callback| must not be null. |
| 204 // Must be called on the UI thread. | 204 // Must be called on the UI thread. |
| 205 void GetResourceEntryByIdOnUIThread( | 205 void GetResourceEntryByIdOnUIThread(const std::string& resource_id, |
| 206 const std::string& resource_id, | 206 const GetResourceEntryCallback& callback); |
| 207 const GetResourceEntryWithFilePathCallback& callback); | |
| 208 | 207 |
| 209 // Synchronous version of GetResourceEntryByIdOnUIThread(). | 208 // Synchronous version of GetResourceEntryByIdOnUIThread(). |
| 210 FileError GetResourceEntryById(const std::string& resource_id, | 209 FileError GetResourceEntryById(const std::string& resource_id, |
| 211 base::FilePath* out_file_path, | |
| 212 ResourceEntry* out_entry); | 210 ResourceEntry* out_entry); |
| 213 | 211 |
| 214 // Finds an entry (a file or a directory) by |file_path|. | 212 // Finds an entry (a file or a directory) by |file_path|. |
| 215 // |callback| must not be null. | 213 // |callback| must not be null. |
| 216 // Must be called on the UI thread. | 214 // Must be called on the UI thread. |
| 217 void GetResourceEntryByPathOnUIThread( | 215 void GetResourceEntryByPathOnUIThread( |
| 218 const base::FilePath& file_path, | 216 const base::FilePath& file_path, |
| 219 const GetResourceEntryCallback& callback); | 217 const GetResourceEntryCallback& callback); |
| 220 | 218 |
| 221 // Synchronous version of GetResourceEntryByPathOnUIThread(). | 219 // Synchronous version of GetResourceEntryByPathOnUIThread(). |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // invalidate its weak pointers before other members are destroyed. | 365 // invalidate its weak pointers before other members are destroyed. |
| 368 base::WeakPtrFactory<ResourceMetadata> weak_ptr_factory_; | 366 base::WeakPtrFactory<ResourceMetadata> weak_ptr_factory_; |
| 369 | 367 |
| 370 DISALLOW_COPY_AND_ASSIGN(ResourceMetadata); | 368 DISALLOW_COPY_AND_ASSIGN(ResourceMetadata); |
| 371 }; | 369 }; |
| 372 | 370 |
| 373 } // namespace internal | 371 } // namespace internal |
| 374 } // namespace drive | 372 } // namespace drive |
| 375 | 373 |
| 376 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ | 374 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_METADATA_H_ |
| OLD | NEW |