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

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

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_DRIVE_SERVICE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // TODO(kochi): Further split gdata_operations.h and include only necessary 10 // TODO(kochi): Further split gdata_operations.h and include only necessary
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 const GURL& download_url, 231 const GURL& download_url,
232 const DownloadActionCallback& download_action_callback, 232 const DownloadActionCallback& download_action_callback,
233 const GetContentCallback& get_content_callback) = 0; 233 const GetContentCallback& get_content_callback) = 0;
234 234
235 // Initiates uploading of a new document/file. 235 // Initiates uploading of a new document/file.
236 // |content_type| and |content_length| should be the ones of the file to be 236 // |content_type| and |content_length| should be the ones of the file to be
237 // uploaded. 237 // uploaded.
238 // |callback| must not be null. 238 // |callback| must not be null.
239 // TODO(hidehiko): Replace |parent_upload_url| by resource id. 239 // TODO(hidehiko): Replace |parent_upload_url| by resource id.
240 virtual void InitiateUploadNewFile( 240 virtual void InitiateUploadNewFile(
241 const FilePath& drive_file_path, 241 const base::FilePath& drive_file_path,
242 const std::string& content_type, 242 const std::string& content_type,
243 int64 content_length, 243 int64 content_length,
244 const GURL& parent_upload_url, 244 const GURL& parent_upload_url,
245 const std::string& title, 245 const std::string& title,
246 const InitiateUploadCallback& callback) = 0; 246 const InitiateUploadCallback& callback) = 0;
247 247
248 // Initiates uploading of an existing document/file. 248 // Initiates uploading of an existing document/file.
249 // |content_type| and |content_length| should be the ones of the file to be 249 // |content_type| and |content_length| should be the ones of the file to be
250 // uploaded. 250 // uploaded.
251 // |callback| must not be null. 251 // |callback| must not be null.
252 // TODO(hidehiko): Replace |upload_url| by resource id. 252 // TODO(hidehiko): Replace |upload_url| by resource id.
253 virtual void InitiateUploadExistingFile( 253 virtual void InitiateUploadExistingFile(
254 const FilePath& drive_file_path, 254 const base::FilePath& drive_file_path,
255 const std::string& content_type, 255 const std::string& content_type,
256 int64 content_length, 256 int64 content_length,
257 const GURL& upload_url, 257 const GURL& upload_url,
258 const std::string& etag, 258 const std::string& etag,
259 const InitiateUploadCallback& callback) = 0; 259 const InitiateUploadCallback& callback) = 0;
260 260
261 // Resumes uploading of a document/file on the calling thread. 261 // Resumes uploading of a document/file on the calling thread.
262 // |callback| must not be null. 262 // |callback| must not be null.
263 virtual void ResumeUpload(const ResumeUploadParams& params, 263 virtual void ResumeUpload(const ResumeUploadParams& params,
264 const UploadRangeCallback& callback) = 0; 264 const UploadRangeCallback& callback) = 0;
(...skipping 13 matching lines...) Expand all
278 // Upon completion, invokes |callback| with the link to open the file with 278 // Upon completion, invokes |callback| with the link to open the file with
279 // the provided app. |callback| must not be null. 279 // the provided app. |callback| must not be null.
280 virtual void AuthorizeApp(const GURL& edit_url, 280 virtual void AuthorizeApp(const GURL& edit_url,
281 const std::string& app_id, 281 const std::string& app_id,
282 const AuthorizeAppCallback& callback) = 0; 282 const AuthorizeAppCallback& callback) = 0;
283 }; 283 };
284 284
285 } // namespace google_apis 285 } // namespace google_apis
286 286
287 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_ 287 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_SERVICE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.cc ('k') | chrome/browser/google_apis/drive_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698