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

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

Issue 18211008: Add resource ID based download requests in {GDataWapi/Drive} requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. 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
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_API_REQUESTS_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_REQUESTS_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_REQUESTS_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_REQUESTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 virtual void OnRangeRequestComplete( 521 virtual void OnRangeRequestComplete(
522 const UploadRangeResponse& response, 522 const UploadRangeResponse& response,
523 scoped_ptr<base::Value> value) OVERRIDE; 523 scoped_ptr<base::Value> value) OVERRIDE;
524 524
525 private: 525 private:
526 const UploadRangeCallback callback_; 526 const UploadRangeCallback callback_;
527 527
528 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusRequest); 528 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusRequest);
529 }; 529 };
530 530
531 //========================== DownloadFileRequest ==========================
532
533 // This class performs the request for downloading of a specified file.
534 class DownloadFileRequest : public DownloadFileRequestBase {
535 public:
536 // See also DownloadFileRequestBase's comment for parameters meaning.
537 DownloadFileRequest(RequestSender* sender,
538 const DriveApiUrlGenerator& url_generator,
539 const DownloadActionCallback& download_action_callback,
hidehiko 2013/07/02 09:17:30 How about move this callback to the last parameter
kinaba 2013/07/02 09:34:59 Done.
540 const GetContentCallback& get_content_callback,
541 const ProgressCallback& progress_callback,
542 const std::string& resource_id,
543 const base::FilePath& output_file_path);
544 virtual ~DownloadFileRequest();
545
546 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequest);
547 };
531 548
532 } // namespace drive 549 } // namespace drive
533 } // namespace google_apis 550 } // namespace google_apis
534 551
535 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_REQUESTS_H_ 552 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_REQUESTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/base_requests_server_unittest.cc ('k') | chrome/browser/google_apis/drive_api_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698