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

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

Issue 10538071: gdata: Convert FindEntryByResourceIdSync() to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase svn:trunk/src@141679 and resolve conflicts. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_params.h
diff --git a/chrome/browser/chromeos/gdata/gdata_params.h b/chrome/browser/chromeos/gdata/gdata_params.h
index 58dacc7d180f3e64d95301bb2bae5684a705b15d..93d9ae343a78a8a95f8eae6cc38ea7397a97aae3 100644
--- a/chrome/browser/chromeos/gdata/gdata_params.h
+++ b/chrome/browser/chromeos/gdata/gdata_params.h
@@ -15,6 +15,7 @@
#include "base/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/platform_file.h"
#include "base/values.h"
#include "chrome/browser/chromeos/gdata/gdata_parser.h"
#include "net/base/io_buffer.h"
@@ -22,6 +23,8 @@
namespace gdata {
+class GDataEntry;
+
// Struct for response to ResumeUpload.
struct ResumeUploadResponse {
ResumeUploadResponse(GDataErrorCode code,
@@ -111,6 +114,11 @@ typedef base::Callback<void(
const ResumeUploadResponse& response,
scoped_ptr<gdata::DocumentEntry> new_entry)> ResumeUploadCallback;
+// Callback type used to get result of file search.
+// If |error| is not PLATFORM_FILE_OK, |entry| is set to NULL.
+typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)>
+ FindEntryCallback;
+
} // namespace gdata
#endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_files.h ('k') | chrome/browser/chromeos/gdata/gdata_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698