| 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 // This file provides base classes used to issue HTTP requests for Google | 5 // This file provides base classes used to issue HTTP requests for Google |
| 6 // APIs. | 6 // APIs. |
| 7 | 7 |
| 8 #ifndef GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ | 8 #ifndef GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ |
| 9 #define GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ | 9 #define GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ |
| 10 | 10 |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 // UrlFetchRequestBase overrides. | 623 // UrlFetchRequestBase overrides. |
| 624 GURL GetURL() const override; | 624 GURL GetURL() const override; |
| 625 void GetOutputFilePath(base::FilePath* local_file_path, | 625 void GetOutputFilePath(base::FilePath* local_file_path, |
| 626 GetContentCallback* get_content_callback) override; | 626 GetContentCallback* get_content_callback) override; |
| 627 void ProcessURLFetchResults(const net::URLFetcher* source) override; | 627 void ProcessURLFetchResults(const net::URLFetcher* source) override; |
| 628 void RunCallbackOnPrematureFailure(DriveApiErrorCode code) override; | 628 void RunCallbackOnPrematureFailure(DriveApiErrorCode code) override; |
| 629 | 629 |
| 630 // net::URLFetcherDelegate overrides. | 630 // net::URLFetcherDelegate overrides. |
| 631 void OnURLFetchDownloadProgress(const net::URLFetcher* source, | 631 void OnURLFetchDownloadProgress(const net::URLFetcher* source, |
| 632 int64_t current, | 632 int64_t current, |
| 633 int64_t total) override; | 633 int64_t total, |
| 634 int64_t current_network_bytes) override; |
| 634 | 635 |
| 635 private: | 636 private: |
| 636 const DownloadActionCallback download_action_callback_; | 637 const DownloadActionCallback download_action_callback_; |
| 637 const GetContentCallback get_content_callback_; | 638 const GetContentCallback get_content_callback_; |
| 638 const ProgressCallback progress_callback_; | 639 const ProgressCallback progress_callback_; |
| 639 const GURL download_url_; | 640 const GURL download_url_; |
| 640 const base::FilePath output_file_path_; | 641 const base::FilePath output_file_path_; |
| 641 | 642 |
| 642 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequestBase); | 643 DISALLOW_COPY_AND_ASSIGN(DownloadFileRequestBase); |
| 643 }; | 644 }; |
| 644 | 645 |
| 645 } // namespace google_apis | 646 } // namespace google_apis |
| 646 | 647 |
| 647 #endif // GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ | 648 #endif // GOOGLE_APIS_DRIVE_BASE_REQUESTS_H_ |
| OLD | NEW |