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

Unified Diff: chrome/browser/chromeos/gdata/gdata_directory_service.h

Issue 10823427: gdata: Change callback type of GDataDirectoryService::GetEntryInfoByResourceId() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_directory_service.h
diff --git a/chrome/browser/chromeos/gdata/gdata_directory_service.h b/chrome/browser/chromeos/gdata/gdata_directory_service.h
index db3177b72cacaee936240e2edd68d8d6c8580ba7..4f3a101840a93a09a0b96cd20153c5b4168ce014 100644
--- a/chrome/browser/chromeos/gdata/gdata_directory_service.h
+++ b/chrome/browser/chromeos/gdata/gdata_directory_service.h
@@ -89,6 +89,17 @@ typedef base::Callback<void(GDataFileError error,
scoped_ptr<GDataEntryProtoVector> entries)>
ReadDirectoryCallback;
+// Used to get entry info from the file system, with the Drive file path.
+// If |error| is not GDATA_FILE_OK, |entry_proto| is set to NULL.
+//
+// |drive_file_path| parameter is provided as GDataEntryProto does not contain
+// the Drive file path (i.e. only contains the base name without parent
+// directory names).
+typedef base::Callback<void(GDataFileError error,
+ const FilePath& drive_file_path,
+ scoped_ptr<GDataEntryProto> entry_proto)>
+ GetEntryInfoWithFilePathCallback;
+
// This is a part of EntryInfoPairResult.
struct EntryInfoResult {
EntryInfoResult();
@@ -202,8 +213,9 @@ class GDataDirectoryService {
//
// Must be called from UI thread. |callback| is run on UI thread.
// |callback| must not be null.
- void GetEntryInfoByResourceId(const std::string& resource_id,
- const GetEntryInfoCallback& callback);
+ void GetEntryInfoByResourceId(
+ const std::string& resource_id,
+ const GetEntryInfoWithFilePathCallback& callback);
// Finds an entry (a file or a directory) by |file_path|.
//

Powered by Google App Engine
This is Rietveld 408576698