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

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

Issue 18506002: drive/syncFS: Switch to ID based download URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase! Created 7 years, 5 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
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 6 #define CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/google_apis/base_requests.h" 10 #include "chrome/browser/google_apis/base_requests.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Upon completion, invokes |callback| and passes newly created entry on 242 // Upon completion, invokes |callback| and passes newly created entry on
243 // the calling thread. 243 // the calling thread.
244 // This function cannot be named as "CreateDirectory" as it conflicts with 244 // This function cannot be named as "CreateDirectory" as it conflicts with
245 // a macro on Windows. 245 // a macro on Windows.
246 // |callback| must not be null. 246 // |callback| must not be null.
247 virtual google_apis::CancelCallback AddNewDirectory( 247 virtual google_apis::CancelCallback AddNewDirectory(
248 const std::string& parent_resource_id, 248 const std::string& parent_resource_id,
249 const std::string& directory_name, 249 const std::string& directory_name,
250 const google_apis::GetResourceEntryCallback& callback) = 0; 250 const google_apis::GetResourceEntryCallback& callback) = 0;
251 251
252 // Downloads a file from |download_url|. The downloaded file will 252 // Downloads a file with |resourced_id|. The downloaded file will
253 // be stored at |local_cache_path| location. Upon completion, invokes 253 // be stored at |local_cache_path| location. Upon completion, invokes
254 // |download_action_callback| with results on the calling thread. 254 // |download_action_callback| with results on the calling thread.
255 // If |get_content_callback| is not empty, 255 // If |get_content_callback| is not empty,
256 // URLFetcherDelegate::OnURLFetchDownloadData will be called, which will in 256 // URLFetcherDelegate::OnURLFetchDownloadData will be called, which will in
257 // turn invoke |get_content_callback| on the calling thread. 257 // turn invoke |get_content_callback| on the calling thread.
258 // If |progress_callback| is not empty, it is invoked periodically when 258 // If |progress_callback| is not empty, it is invoked periodically when
259 // the download made some progress. 259 // the download made some progress.
260 // 260 //
261 // |download_action_callback| must not be null. 261 // |download_action_callback| must not be null.
262 // |get_content_callback| and |progress_callback| may be null. 262 // |get_content_callback| and |progress_callback| may be null.
263 virtual google_apis::CancelCallback DownloadFile( 263 virtual google_apis::CancelCallback DownloadFile(
264 const base::FilePath& local_cache_path, 264 const base::FilePath& local_cache_path,
265 const GURL& download_url, 265 const std::string& resource_id,
266 const google_apis::DownloadActionCallback& download_action_callback, 266 const google_apis::DownloadActionCallback& download_action_callback,
267 const google_apis::GetContentCallback& get_content_callback, 267 const google_apis::GetContentCallback& get_content_callback,
268 const google_apis::ProgressCallback& progress_callback) = 0; 268 const google_apis::ProgressCallback& progress_callback) = 0;
269 269
270 // Initiates uploading of a new document/file. 270 // Initiates uploading of a new document/file.
271 // |content_type| and |content_length| should be the ones of the file to be 271 // |content_type| and |content_length| should be the ones of the file to be
272 // uploaded. 272 // uploaded.
273 // |callback| must not be null. 273 // |callback| must not be null.
274 virtual google_apis::CancelCallback InitiateUploadNewFile( 274 virtual google_apis::CancelCallback InitiateUploadNewFile(
275 const std::string& content_type, 275 const std::string& content_type,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // the provided app. |callback| must not be null. 315 // the provided app. |callback| must not be null.
316 virtual google_apis::CancelCallback AuthorizeApp( 316 virtual google_apis::CancelCallback AuthorizeApp(
317 const std::string& resource_id, 317 const std::string& resource_id,
318 const std::string& app_id, 318 const std::string& app_id,
319 const google_apis::AuthorizeAppCallback& callback) = 0; 319 const google_apis::AuthorizeAppCallback& callback) = 0;
320 }; 320 };
321 321
322 } // namespace drive 322 } // namespace drive
323 323
324 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 324 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698