| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_UPLOADER_ON_WORKER_H
_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_UPLOADER_ON_WORKER_H
_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_UPLOADER_ON_WORKER_H
_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_UPLOADER_ON_WORKER_H
_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/sequence_checker.h" | 10 #include "base/sequence_checker.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 base::SequencedTaskRunner* worker_task_runner); | 32 base::SequencedTaskRunner* worker_task_runner); |
| 33 virtual ~DriveUploaderOnWorker(); | 33 virtual ~DriveUploaderOnWorker(); |
| 34 | 34 |
| 35 virtual google_apis::CancelCallback UploadNewFile( | 35 virtual google_apis::CancelCallback UploadNewFile( |
| 36 const std::string& parent_resource_id, | 36 const std::string& parent_resource_id, |
| 37 const base::FilePath& local_file_path, | 37 const base::FilePath& local_file_path, |
| 38 const std::string& title, | 38 const std::string& title, |
| 39 const std::string& content_type, | 39 const std::string& content_type, |
| 40 const UploadNewFileOptions& options, | 40 const UploadNewFileOptions& options, |
| 41 const drive::UploadCompletionCallback& callback, | 41 const drive::UploadCompletionCallback& callback, |
| 42 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 42 const google_apis::ProgressCallback& progress_callback) override; |
| 43 | 43 |
| 44 virtual google_apis::CancelCallback UploadExistingFile( | 44 virtual google_apis::CancelCallback UploadExistingFile( |
| 45 const std::string& resource_id, | 45 const std::string& resource_id, |
| 46 const base::FilePath& local_file_path, | 46 const base::FilePath& local_file_path, |
| 47 const std::string& content_type, | 47 const std::string& content_type, |
| 48 const UploadExistingFileOptions& options, | 48 const UploadExistingFileOptions& options, |
| 49 const drive::UploadCompletionCallback& callback, | 49 const drive::UploadCompletionCallback& callback, |
| 50 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 50 const google_apis::ProgressCallback& progress_callback) override; |
| 51 | 51 |
| 52 // Following method is expected not to be used. | 52 // Following method is expected not to be used. |
| 53 virtual google_apis::CancelCallback ResumeUploadFile( | 53 virtual google_apis::CancelCallback ResumeUploadFile( |
| 54 const GURL& upload_location, | 54 const GURL& upload_location, |
| 55 const base::FilePath& local_file_path, | 55 const base::FilePath& local_file_path, |
| 56 const std::string& content_type, | 56 const std::string& content_type, |
| 57 const drive::UploadCompletionCallback& callback, | 57 const drive::UploadCompletionCallback& callback, |
| 58 const google_apis::ProgressCallback& progress_callback) OVERRIDE; | 58 const google_apis::ProgressCallback& progress_callback) override; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 base::WeakPtr<DriveUploaderWrapper> wrapper_; | 61 base::WeakPtr<DriveUploaderWrapper> wrapper_; |
| 62 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 62 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 63 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; | 63 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| 64 | 64 |
| 65 base::SequenceChecker sequece_checker_; | 65 base::SequenceChecker sequece_checker_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(DriveUploaderOnWorker); | 67 DISALLOW_COPY_AND_ASSIGN(DriveUploaderOnWorker); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace drive_backend | 70 } // namespace drive_backend |
| 71 } // namespace sync_file_system | 71 } // namespace sync_file_system |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_UPLOADER_ON_WORKE
R_H_ | 73 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_UPLOADER_ON_WORKE
R_H_ |
| OLD | NEW |