| 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_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 struct ResumeUploadResponse { | 440 struct ResumeUploadResponse { |
| 441 ResumeUploadResponse(); | 441 ResumeUploadResponse(); |
| 442 ResumeUploadResponse(GDataErrorCode code, | 442 ResumeUploadResponse(GDataErrorCode code, |
| 443 int64 start_range_received, | 443 int64 start_range_received, |
| 444 int64 end_range_received); | 444 int64 end_range_received); |
| 445 ~ResumeUploadResponse(); | 445 ~ResumeUploadResponse(); |
| 446 | 446 |
| 447 GDataErrorCode code; | 447 GDataErrorCode code; |
| 448 int64 start_range_received; | 448 int64 start_range_received; |
| 449 int64 end_range_received; // inclusive. See below. | 449 int64 end_range_received; // inclusive. See below. |
| 450 FilePath drive_file_path; | |
| 451 }; | 450 }; |
| 452 | 451 |
| 453 // Struct for passing params needed for DriveServiceInterface::ResumeUpload() | 452 // Struct for passing params needed for DriveServiceInterface::ResumeUpload() |
| 454 // calls. | 453 // calls. |
| 455 struct ResumeUploadParams { | 454 struct ResumeUploadParams { |
| 456 ResumeUploadParams(UploadMode upload_mode, | 455 ResumeUploadParams(UploadMode upload_mode, |
| 457 int64 start_range, | 456 int64 start_range, |
| 458 int64 end_range, | 457 int64 end_range, |
| 459 int64 content_length, | 458 int64 content_length, |
| 460 const std::string& content_type, | 459 const std::string& content_type, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 const ResumeUploadCallback callback_; | 523 const ResumeUploadCallback callback_; |
| 525 const ResumeUploadParams params_; | 524 const ResumeUploadParams params_; |
| 526 bool last_chunk_completed_; | 525 bool last_chunk_completed_; |
| 527 | 526 |
| 528 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); | 527 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); |
| 529 }; | 528 }; |
| 530 | 529 |
| 531 } // namespace google_apis | 530 } // namespace google_apis |
| 532 | 531 |
| 533 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ | 532 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
| OLD | NEW |