summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/gdata/drive_file_system.h
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-28 21:27:21 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-28 21:27:21 +0000
commit4232fbbe1e6e8971f522429a8cd899990528e4f3 (patch)
treec0568d5348921eb1b46107ff22ed30d4f966e5a8 /chrome/browser/chromeos/gdata/drive_file_system.h
parentca7b87fe01809208e87c30d6dc1bf6beea901097 (diff)
downloadchromium_src-4232fbbe1e6e8971f522429a8cd899990528e4f3.zip
chromium_src-4232fbbe1e6e8971f522429a8cd899990528e4f3.tar.gz
chromium_src-4232fbbe1e6e8971f522429a8cd899990528e4f3.tar.bz2
drive: Simplify DriveFileSystem::GetEntryInfoByResourceId()
The number of callers of GetEntryByResourceIdAsync() in DriveFileSystem is reduced from 3 to 2. BUG=143518 TEST="make available offline" works as before, which is implemented on top of this function Review URL: https://chromiumcodereview.appspot.com/10893012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/gdata/drive_file_system.h')
-rw-r--r--chrome/browser/chromeos/gdata/drive_file_system.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/gdata/drive_file_system.h b/chrome/browser/chromeos/gdata/drive_file_system.h
index 3af05ca..725ad6b 100644
--- a/chrome/browser/chromeos/gdata/drive_file_system.h
+++ b/chrome/browser/chromeos/gdata/drive_file_system.h
@@ -751,9 +751,6 @@ class DriveFileSystem : public DriveFileSystemInterface,
const GetFileCallback& get_file_callback,
const GetContentCallback& get_content_callback,
DriveEntry* entry);
- void GetEntryInfoByEntryOnUIThread(
- const GetEntryInfoWithFilePathCallback& callback,
- DriveEntry* entry);
void UpdateFileByResourceIdOnUIThread(const std::string& resource_id,
const FileOperationCallback& callback);
void GetEntryInfoByPathOnUIThread(const FilePath& file_path,
@@ -781,6 +778,15 @@ class DriveFileSystem : public DriveFileSystemInterface,
const FilePath& file_content_path,
const base::Closure& callback);
+ // Part of GetEntryInfoByResourceId(). Called after
+ // DriveResourceMetadata::GetEntryInfoByResourceId() is complete.
+ // |callback| must not be null.
+ void GetEntryInfoByResourceIdAfterGetEntry(
+ const GetEntryInfoWithFilePathCallback& callback,
+ DriveFileError error,
+ const FilePath& file_path,
+ scoped_ptr<DriveEntryProto> entry_proto);
+
// Part of CopyOnUIThread(). Called after GetEntryInfoPairByPaths() is
// complete. |callback| must not be null.
void CopyOnUIThreadAfterGetEntryInfoPair(