Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/browser/google_apis/gdata_operations.h

Issue 11170002: Hold path by value in gdata::InitiateUploadParams (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698