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_GDATA_WAPI_REQUESTS_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 virtual void OnRangeRequestComplete( | 482 virtual void OnRangeRequestComplete( |
483 const UploadRangeResponse& response, | 483 const UploadRangeResponse& response, |
484 scoped_ptr<base::Value> value) OVERRIDE; | 484 scoped_ptr<base::Value> value) OVERRIDE; |
485 | 485 |
486 private: | 486 private: |
487 const UploadRangeCallback callback_; | 487 const UploadRangeCallback callback_; |
488 | 488 |
489 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusRequest); | 489 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusRequest); |
490 }; | 490 }; |
491 | 491 |
| 492 |
| 493 //========================== DownloadFileRequest ========================== |
| 494 |
| 495 // This class performs the request for downloading of a specified file. |
| 496 class DownloadFileRequest : public DownloadFileRequestBase { |
| 497 public: |
| 498 // See also DownloadFileRequestBase's comment for parameters meaning. |
| 499 DownloadFileRequest(RequestSender* sender, |
| 500 const GDataWapiUrlGenerator& url_generator, |
| 501 const DownloadActionCallback& download_action_callback, |
| 502 const GetContentCallback& get_content_callback, |
| 503 const ProgressCallback& progress_callback, |
| 504 const std::string& resource_id, |
| 505 const base::FilePath& output_file_path); |
| 506 virtual ~DownloadFileRequest(); |
| 507 |
| 508 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequest); |
| 509 }; |
| 510 |
492 } // namespace google_apis | 511 } // namespace google_apis |
493 | 512 |
494 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ | 513 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ |
OLD | NEW |