OLD | NEW |
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 Loading... |
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 std::string& resource_id, |
| 540 const base::FilePath& output_file_path, |
| 541 const DownloadActionCallback& download_action_callback, |
| 542 const GetContentCallback& get_content_callback, |
| 543 const ProgressCallback& progress_callback); |
| 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_ |
OLD | NEW |