summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/gdata/gdata_upload_file_info.h
diff options
context:
space:
mode:
authorzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 21:09:43 +0000
committerzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 21:09:43 +0000
commit71f2be8ac4c9024f9a7286545d06c921f50f18f3 (patch)
tree77d45637476f804235d948d53d2920eba27a7d71 /chrome/browser/chromeos/gdata/gdata_upload_file_info.h
parentf3dc6fbc4d1ae9591fb59bdcba591fec5a2e7187 (diff)
downloadchromium_src-71f2be8ac4c9024f9a7286545d06c921f50f18f3.zip
chromium_src-71f2be8ac4c9024f9a7286545d06c921f50f18f3.tar.gz
chromium_src-71f2be8ac4c9024f9a7286545d06c921f50f18f3.tar.bz2
Implemented GDataFileSystem::TransferFile() method. It uploads file from the local path directly to gdata server.
BUG=chromium-os:28331 TEST=none Review URL: https://chromiumcodereview.appspot.com/9850001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/gdata/gdata_upload_file_info.h')
-rw-r--r--chrome/browser/chromeos/gdata/gdata_upload_file_info.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/gdata/gdata_upload_file_info.h b/chrome/browser/chromeos/gdata/gdata_upload_file_info.h
index 1d5e2b7..42b2772 100644
--- a/chrome/browser/chromeos/gdata/gdata_upload_file_info.h
+++ b/chrome/browser/chromeos/gdata/gdata_upload_file_info.h
@@ -26,11 +26,14 @@ namespace gdata {
class DocumentEntry;
+// Used for file operations like removing files.
+typedef base::Callback<void(base::PlatformFileError error,
+ DocumentEntry* entry)>
+ UploadCompletionCallback;
+
// Structure containing current upload information of file, passed between
// DocumentsService methods and callbacks.
struct UploadFileInfo {
- typedef base::Closure UploadFileCallback;
-
UploadFileInfo();
~UploadFileInfo();
@@ -79,7 +82,7 @@ struct UploadFileInfo {
scoped_ptr<DocumentEntry> entry;
// Callback to be invoked once the upload has completed.
- UploadFileCallback completion_callback;
+ UploadCompletionCallback completion_callback;
};
} // namespace gdata