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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_upload_file_info.h

Issue 10540132: gdata: Convert GDataFileSystem::AddUploadFile() to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to explain why Patch Set #11 is necesary. Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_UPLOAD_FILE_INFO_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool upload_paused; // Whether this file's upload has been paused. 71 bool upload_paused; // Whether this file's upload has been paused.
72 72
73 bool should_retry_file_open; // Whether we should retry opening this file. 73 bool should_retry_file_open; // Whether we should retry opening this file.
74 int num_file_open_tries; // Number of times we've tried to open this file. 74 int num_file_open_tries; // Number of times we've tried to open this file.
75 75
76 // Will be set once the upload is complete. 76 // Will be set once the upload is complete.
77 scoped_ptr<DocumentEntry> entry; 77 scoped_ptr<DocumentEntry> entry;
78 78
79 // Callback to be invoked once the upload has completed. 79 // Callback to be invoked once the upload has completed.
80 typedef base::Callback<void(base::PlatformFileError error, 80 typedef base::Callback<void(base::PlatformFileError error,
81 UploadFileInfo* upload_file_info)> UploadCompletionCallback; 81 scoped_ptr<UploadFileInfo> upload_file_info)> UploadCompletionCallback;
82 UploadCompletionCallback completion_callback; 82 UploadCompletionCallback completion_callback;
83 }; 83 };
84 84
85 } // namespace gdata 85 } // namespace gdata
86 86
87 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_ 87 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_upload_file_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698