| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 // Struct for response to ResumeUpload. | 438 // Struct for response to ResumeUpload. |
| 439 // TODO(satorux): Should return the next upload URL. crbug.com/163555 | 439 // TODO(satorux): Should return the next upload URL. crbug.com/163555 |
| 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 // The values of "Range" header returned from the server. The values are |
| 449 // used to continue uploading more data. These are set to -1 if an upload |
| 450 // is complete. |
| 448 int64 start_range_received; | 451 int64 start_range_received; |
| 449 int64 end_range_received; // inclusive. See below. | 452 int64 end_range_received; // inclusive. See below. |
| 450 }; | 453 }; |
| 451 | 454 |
| 452 // Struct for passing params needed for DriveServiceInterface::ResumeUpload() | 455 // Struct for passing params needed for DriveServiceInterface::ResumeUpload() |
| 453 // calls. | 456 // calls. |
| 454 struct ResumeUploadParams { | 457 struct ResumeUploadParams { |
| 455 ResumeUploadParams(UploadMode upload_mode, | 458 ResumeUploadParams(UploadMode upload_mode, |
| 456 int64 start_range, | 459 int64 start_range, |
| 457 int64 end_range, | 460 int64 end_range, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 const ResumeUploadCallback callback_; | 526 const ResumeUploadCallback callback_; |
| 524 const ResumeUploadParams params_; | 527 const ResumeUploadParams params_; |
| 525 bool last_chunk_completed_; | 528 bool last_chunk_completed_; |
| 526 | 529 |
| 527 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); | 530 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); |
| 528 }; | 531 }; |
| 529 | 532 |
| 530 } // namespace google_apis | 533 } // namespace google_apis |
| 531 | 534 |
| 532 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ | 535 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |
| OLD | NEW |