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

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

Issue 18211008: Add resource ID based download requests in {GDataWapi/Drive} requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder parameters. Created 7 years, 5 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
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_WAPI_REQUESTS_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 virtual void OnRangeRequestComplete( 482 virtual void OnRangeRequestComplete(
483 const UploadRangeResponse& response, 483 const UploadRangeResponse& response,
484 scoped_ptr<base::Value> value) OVERRIDE; 484 scoped_ptr<base::Value> value) OVERRIDE;
485 485
486 private: 486 private:
487 const UploadRangeCallback callback_; 487 const UploadRangeCallback callback_;
488 488
489 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusRequest); 489 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusRequest);
490 }; 490 };
491 491
492
493 //========================== DownloadFileRequest ==========================
494
495 // This class performs the request for downloading of a specified file.
496 class DownloadFileRequest : public DownloadFileRequestBase {
497 public:
498 // See also DownloadFileRequestBase's comment for parameters meaning.
499 DownloadFileRequest(RequestSender* sender,
500 const GDataWapiUrlGenerator& url_generator,
501 const DownloadActionCallback& download_action_callback,
502 const GetContentCallback& get_content_callback,
503 const ProgressCallback& progress_callback,
504 const std::string& resource_id,
505 const base::FilePath& output_file_path);
506 virtual ~DownloadFileRequest();
507
508 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequest);
509 };
510
492 } // namespace google_apis 511 } // namespace google_apis
493 512
494 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_ 513 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_REQUESTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_requests_unittest.cc ('k') | chrome/browser/google_apis/gdata_wapi_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698