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_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 private: | 312 private: |
313 std::string resource_id_; | 313 std::string resource_id_; |
314 GURL parent_content_url_; | 314 GURL parent_content_url_; |
315 | 315 |
316 DISALLOW_COPY_AND_ASSIGN(RemoveResourceFromDirectoryOperation); | 316 DISALLOW_COPY_AND_ASSIGN(RemoveResourceFromDirectoryOperation); |
317 }; | 317 }; |
318 | 318 |
319 //=========================== InitiateUploadOperation ========================== | 319 //=========================== InitiateUploadOperation ========================== |
320 | 320 |
321 // Struct for passing params needed for DocumentsService::InitiateUpload() | 321 // Struct for passing params needed for DriveServiceInterface::InitiateUpload() |
322 // calls. | 322 // calls. |
323 // | 323 // |
324 // When uploading a new file (UPLOAD_NEW_FILE): | 324 // When uploading a new file (UPLOAD_NEW_FILE): |
325 // - |title| should be set. | 325 // - |title| should be set. |
326 // - |upload_location| should be the upload_url() of the parent directory. | 326 // - |upload_location| should be the upload_url() of the parent directory. |
327 // | 327 // |
328 // When updating an existing file (UPLOAD_EXISTING_FILE): | 328 // When updating an existing file (UPLOAD_EXISTING_FILE): |
329 // - |title| should be empty | 329 // - |title| should be empty |
330 // - |upload_location| should be the upload_url() of the existing file. | 330 // - |upload_location| should be the upload_url() of the existing file. |
331 struct InitiateUploadParams { | 331 struct InitiateUploadParams { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 int64 start_range_received, | 386 int64 start_range_received, |
387 int64 end_range_received); | 387 int64 end_range_received); |
388 ~ResumeUploadResponse(); | 388 ~ResumeUploadResponse(); |
389 | 389 |
390 GDataErrorCode code; | 390 GDataErrorCode code; |
391 int64 start_range_received; | 391 int64 start_range_received; |
392 int64 end_range_received; | 392 int64 end_range_received; |
393 FilePath virtual_path; | 393 FilePath virtual_path; |
394 }; | 394 }; |
395 | 395 |
396 // Struct for passing params needed for DocumentsService::ResumeUpload() calls. | 396 // Struct for passing params needed for DriveServiceInterface::ResumeUpload() |
| 397 // calls. |
397 struct ResumeUploadParams { | 398 struct ResumeUploadParams { |
398 ResumeUploadParams(UploadMode upload_mode, | 399 ResumeUploadParams(UploadMode upload_mode, |
399 int64 start_range, | 400 int64 start_range, |
400 int64 end_range, | 401 int64 end_range, |
401 int64 content_length, | 402 int64 content_length, |
402 const std::string& content_type, | 403 const std::string& content_type, |
403 scoped_refptr<net::IOBuffer> buf, | 404 scoped_refptr<net::IOBuffer> buf, |
404 const GURL& upload_location, | 405 const GURL& upload_location, |
405 const FilePath& virtual_path); | 406 const FilePath& virtual_path); |
406 ~ResumeUploadParams(); | 407 ~ResumeUploadParams(); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 539 |
539 // Callback to which the photo data is passed. | 540 // Callback to which the photo data is passed. |
540 GetContentCallback callback_; | 541 GetContentCallback callback_; |
541 | 542 |
542 DISALLOW_COPY_AND_ASSIGN(GetContactPhotoOperation); | 543 DISALLOW_COPY_AND_ASSIGN(GetContactPhotoOperation); |
543 }; | 544 }; |
544 | 545 |
545 } // namespace gdata | 546 } // namespace gdata |
546 | 547 |
547 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ | 548 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ |
OLD | NEW |