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_OPERATIONS_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_OPERATIONS_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_OPERATIONS_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_OPERATIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 int64 content_length, | 338 int64 content_length, |
339 const GURL& upload_location, | 339 const GURL& upload_location, |
340 const FilePath& virtual_path); | 340 const FilePath& virtual_path); |
341 ~InitiateUploadParams(); | 341 ~InitiateUploadParams(); |
342 | 342 |
343 UploadMode upload_mode; | 343 UploadMode upload_mode; |
344 std::string title; | 344 std::string title; |
345 std::string content_type; | 345 std::string content_type; |
346 int64 content_length; | 346 int64 content_length; |
347 GURL upload_location; | 347 GURL upload_location; |
348 const FilePath& virtual_path; | 348 FilePath virtual_path; |
349 }; | 349 }; |
350 | 350 |
351 // Callback type for DocumentServiceInterface::InitiateUpload. | 351 // Callback type for DocumentServiceInterface::InitiateUpload. |
352 typedef base::Callback<void(GDataErrorCode error, | 352 typedef base::Callback<void(GDataErrorCode error, |
353 const GURL& upload_url)> InitiateUploadCallback; | 353 const GURL& upload_url)> InitiateUploadCallback; |
354 | 354 |
355 // This class performs the operation for initiating the upload of a file. | 355 // This class performs the operation for initiating the upload of a file. |
356 class InitiateUploadOperation : public UrlFetchOperationBase { | 356 class InitiateUploadOperation : public UrlFetchOperationBase { |
357 public: | 357 public: |
358 InitiateUploadOperation(OperationRegistry* registry, | 358 InitiateUploadOperation(OperationRegistry* registry, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 | 541 |
542 // Callback to which the photo data is passed. | 542 // Callback to which the photo data is passed. |
543 GetContentCallback callback_; | 543 GetContentCallback callback_; |
544 | 544 |
545 DISALLOW_COPY_AND_ASSIGN(GetContactPhotoOperation); | 545 DISALLOW_COPY_AND_ASSIGN(GetContactPhotoOperation); |
546 }; | 546 }; |
547 | 547 |
548 } // namespace gdata | 548 } // namespace gdata |
549 | 549 |
550 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_OPERATIONS_H_ | 550 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_OPERATIONS_H_ |
OLD | NEW |