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

Side by Side 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 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_PARAMS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/platform_file.h"
18 #include "base/values.h" 19 #include "base/values.h"
19 #include "chrome/browser/chromeos/gdata/gdata_parser.h" 20 #include "chrome/browser/chromeos/gdata/gdata_parser.h"
20 #include "net/base/io_buffer.h" 21 #include "net/base/io_buffer.h"
21 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
22 23
23 namespace gdata { 24 namespace gdata {
24 25
26 class GDataEntry;
27
25 // Struct for response to ResumeUpload. 28 // Struct for response to ResumeUpload.
26 struct ResumeUploadResponse { 29 struct ResumeUploadResponse {
27 ResumeUploadResponse(GDataErrorCode code, 30 ResumeUploadResponse(GDataErrorCode code,
28 int64 start_range_received, 31 int64 start_range_received,
29 int64 end_range_received); 32 int64 end_range_received);
30 ~ResumeUploadResponse(); 33 ~ResumeUploadResponse();
31 34
32 GDataErrorCode code; 35 GDataErrorCode code;
33 int64 start_range_received; 36 int64 start_range_received;
34 int64 end_range_received; 37 int64 end_range_received;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 107
105 // Callback type for DocumentServiceInterface::InitiateUpload. 108 // Callback type for DocumentServiceInterface::InitiateUpload.
106 typedef base::Callback<void(GDataErrorCode error, 109 typedef base::Callback<void(GDataErrorCode error,
107 const GURL& upload_url)> InitiateUploadCallback; 110 const GURL& upload_url)> InitiateUploadCallback;
108 111
109 // Callback type for DocumentServiceInterface::ResumeUpload. 112 // Callback type for DocumentServiceInterface::ResumeUpload.
110 typedef base::Callback<void( 113 typedef base::Callback<void(
111 const ResumeUploadResponse& response, 114 const ResumeUploadResponse& response,
112 scoped_ptr<gdata::DocumentEntry> new_entry)> ResumeUploadCallback; 115 scoped_ptr<gdata::DocumentEntry> new_entry)> ResumeUploadCallback;
113 116
117 // Callback type used to get result of file search.
118 // If |error| is not PLATFORM_FILE_OK, |entry| is set to NULL.
119 typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)>
120 FindEntryCallback;
121
114 } // namespace gdata 122 } // namespace gdata
115 123
116 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ 124 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_
OLDNEW
« 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