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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_service.h

Issue 13927002: Add callback for upload progress in Drive service and operation layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const InitiateUploadCallback& callback) OVERRIDE; 142 const InitiateUploadCallback& callback) OVERRIDE;
143 virtual void ResumeUpload( 143 virtual void ResumeUpload(
144 UploadMode upload_mode, 144 UploadMode upload_mode,
145 const base::FilePath& drive_file_path, 145 const base::FilePath& drive_file_path,
146 const GURL& upload_url, 146 const GURL& upload_url,
147 int64 start_position, 147 int64 start_position,
148 int64 end_position, 148 int64 end_position,
149 int64 content_length, 149 int64 content_length,
150 const std::string& content_type, 150 const std::string& content_type,
151 const scoped_refptr<net::IOBuffer>& buf, 151 const scoped_refptr<net::IOBuffer>& buf,
152 const UploadRangeCallback& callback) OVERRIDE; 152 const UploadRangeCallback& callback,
153 const ProgressCallback& progress_callback) OVERRIDE;
153 virtual void GetUploadStatus( 154 virtual void GetUploadStatus(
154 UploadMode upload_mode, 155 UploadMode upload_mode,
155 const base::FilePath& drive_file_path, 156 const base::FilePath& drive_file_path,
156 const GURL& upload_url, 157 const GURL& upload_url,
157 int64 content_length, 158 int64 content_length,
158 const UploadRangeCallback& callback) OVERRIDE; 159 const UploadRangeCallback& callback) OVERRIDE;
159 virtual void AuthorizeApp( 160 virtual void AuthorizeApp(
160 const std::string& resource_id, 161 const std::string& resource_id,
161 const std::string& app_id, 162 const std::string& app_id,
162 const AuthorizeAppCallback& callback) OVERRIDE; 163 const AuthorizeAppCallback& callback) OVERRIDE;
(...skipping 15 matching lines...) Expand all
178 // reference, as they may outlive this object. 179 // reference, as they may outlive this object.
179 const GDataWapiUrlGenerator url_generator_; 180 const GDataWapiUrlGenerator url_generator_;
180 const std::string custom_user_agent_; 181 const std::string custom_user_agent_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); 183 DISALLOW_COPY_AND_ASSIGN(GDataWapiService);
183 }; 184 };
184 185
185 } // namespace google_apis 186 } // namespace google_apis
186 187
187 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ 188 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_operations_unittest.cc ('k') | chrome/browser/google_apis/gdata_wapi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698