| 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_SERVICE_ON_WORKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 10 #include "base/sequence_checker.h" | 13 #include "base/sequence_checker.h" |
| 11 #include "components/drive/service/drive_service_interface.h" | 14 #include "components/drive/service/drive_service_interface.h" |
| 12 | 15 |
| 13 namespace base { | 16 namespace base { |
| 14 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
| 15 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
| 16 } | 19 } |
| 17 | 20 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 const base::FilePath& local_cache_path, | 50 const base::FilePath& local_cache_path, |
| 48 const std::string& resource_id, | 51 const std::string& resource_id, |
| 49 const google_apis::DownloadActionCallback& download_action_callback, | 52 const google_apis::DownloadActionCallback& download_action_callback, |
| 50 const google_apis::GetContentCallback& get_content_callback, | 53 const google_apis::GetContentCallback& get_content_callback, |
| 51 const google_apis::ProgressCallback& progress_callback) override; | 54 const google_apis::ProgressCallback& progress_callback) override; |
| 52 | 55 |
| 53 google_apis::CancelCallback GetAboutResource( | 56 google_apis::CancelCallback GetAboutResource( |
| 54 const google_apis::AboutResourceCallback& callback) override; | 57 const google_apis::AboutResourceCallback& callback) override; |
| 55 | 58 |
| 56 google_apis::CancelCallback GetChangeList( | 59 google_apis::CancelCallback GetChangeList( |
| 57 int64 start_changestamp, | 60 int64_t start_changestamp, |
| 58 const google_apis::ChangeListCallback& callback) override; | 61 const google_apis::ChangeListCallback& callback) override; |
| 59 | 62 |
| 60 google_apis::CancelCallback GetRemainingChangeList( | 63 google_apis::CancelCallback GetRemainingChangeList( |
| 61 const GURL& next_link, | 64 const GURL& next_link, |
| 62 const google_apis::ChangeListCallback& callback) override; | 65 const google_apis::ChangeListCallback& callback) override; |
| 63 | 66 |
| 64 std::string GetRootResourceId() const override; | 67 std::string GetRootResourceId() const override; |
| 65 | 68 |
| 66 google_apis::CancelCallback GetRemainingFileList( | 69 google_apis::CancelCallback GetRemainingFileList( |
| 67 const GURL& next_link, | 70 const GURL& next_link, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const base::Time& last_modified, | 127 const base::Time& last_modified, |
| 125 const base::Time& last_viewed_by_me, | 128 const base::Time& last_viewed_by_me, |
| 126 const google_apis::drive::Properties& properties, | 129 const google_apis::drive::Properties& properties, |
| 127 const google_apis::FileResourceCallback& callback) override; | 130 const google_apis::FileResourceCallback& callback) override; |
| 128 google_apis::CancelCallback AddResourceToDirectory( | 131 google_apis::CancelCallback AddResourceToDirectory( |
| 129 const std::string& parent_resource_id, | 132 const std::string& parent_resource_id, |
| 130 const std::string& resource_id, | 133 const std::string& resource_id, |
| 131 const google_apis::EntryActionCallback& callback) override; | 134 const google_apis::EntryActionCallback& callback) override; |
| 132 google_apis::CancelCallback InitiateUploadNewFile( | 135 google_apis::CancelCallback InitiateUploadNewFile( |
| 133 const std::string& content_type, | 136 const std::string& content_type, |
| 134 int64 content_length, | 137 int64_t content_length, |
| 135 const std::string& parent_resource_id, | 138 const std::string& parent_resource_id, |
| 136 const std::string& title, | 139 const std::string& title, |
| 137 const drive::UploadNewFileOptions& options, | 140 const drive::UploadNewFileOptions& options, |
| 138 const google_apis::InitiateUploadCallback& callback) override; | 141 const google_apis::InitiateUploadCallback& callback) override; |
| 139 google_apis::CancelCallback InitiateUploadExistingFile( | 142 google_apis::CancelCallback InitiateUploadExistingFile( |
| 140 const std::string& content_type, | 143 const std::string& content_type, |
| 141 int64 content_length, | 144 int64_t content_length, |
| 142 const std::string& resource_id, | 145 const std::string& resource_id, |
| 143 const drive::UploadExistingFileOptions& options, | 146 const drive::UploadExistingFileOptions& options, |
| 144 const google_apis::InitiateUploadCallback& callback) override; | 147 const google_apis::InitiateUploadCallback& callback) override; |
| 145 google_apis::CancelCallback ResumeUpload( | 148 google_apis::CancelCallback ResumeUpload( |
| 146 const GURL& upload_url, | 149 const GURL& upload_url, |
| 147 int64 start_position, | 150 int64_t start_position, |
| 148 int64 end_position, | 151 int64_t end_position, |
| 149 int64 content_length, | 152 int64_t content_length, |
| 150 const std::string& content_type, | 153 const std::string& content_type, |
| 151 const base::FilePath& local_file_path, | 154 const base::FilePath& local_file_path, |
| 152 const google_apis::drive::UploadRangeCallback& callback, | 155 const google_apis::drive::UploadRangeCallback& callback, |
| 153 const google_apis::ProgressCallback& progress_callback) override; | 156 const google_apis::ProgressCallback& progress_callback) override; |
| 154 google_apis::CancelCallback GetUploadStatus( | 157 google_apis::CancelCallback GetUploadStatus( |
| 155 const GURL& upload_url, | 158 const GURL& upload_url, |
| 156 int64 content_length, | 159 int64_t content_length, |
| 157 const google_apis::drive::UploadRangeCallback& callback) override; | 160 const google_apis::drive::UploadRangeCallback& callback) override; |
| 158 google_apis::CancelCallback MultipartUploadNewFile( | 161 google_apis::CancelCallback MultipartUploadNewFile( |
| 159 const std::string& content_type, | 162 const std::string& content_type, |
| 160 int64 content_length, | 163 int64_t content_length, |
| 161 const std::string& parent_resource_id, | 164 const std::string& parent_resource_id, |
| 162 const std::string& title, | 165 const std::string& title, |
| 163 const base::FilePath& local_file_path, | 166 const base::FilePath& local_file_path, |
| 164 const drive::UploadNewFileOptions& options, | 167 const drive::UploadNewFileOptions& options, |
| 165 const google_apis::FileResourceCallback& callback, | 168 const google_apis::FileResourceCallback& callback, |
| 166 const google_apis::ProgressCallback& progress_callback) override; | 169 const google_apis::ProgressCallback& progress_callback) override; |
| 167 google_apis::CancelCallback MultipartUploadExistingFile( | 170 google_apis::CancelCallback MultipartUploadExistingFile( |
| 168 const std::string& content_type, | 171 const std::string& content_type, |
| 169 int64 content_length, | 172 int64_t content_length, |
| 170 const std::string& resource_id, | 173 const std::string& resource_id, |
| 171 const base::FilePath& local_file_path, | 174 const base::FilePath& local_file_path, |
| 172 const drive::UploadExistingFileOptions& options, | 175 const drive::UploadExistingFileOptions& options, |
| 173 const google_apis::FileResourceCallback& callback, | 176 const google_apis::FileResourceCallback& callback, |
| 174 const google_apis::ProgressCallback& progress_callback) override; | 177 const google_apis::ProgressCallback& progress_callback) override; |
| 175 scoped_ptr<drive::BatchRequestConfiguratorInterface> StartBatchRequest() | 178 scoped_ptr<drive::BatchRequestConfiguratorInterface> StartBatchRequest() |
| 176 override; | 179 override; |
| 177 google_apis::CancelCallback AuthorizeApp( | 180 google_apis::CancelCallback AuthorizeApp( |
| 178 const std::string& resource_id, | 181 const std::string& resource_id, |
| 179 const std::string& app_id, | 182 const std::string& app_id, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 194 | 197 |
| 195 base::SequenceChecker sequence_checker_; | 198 base::SequenceChecker sequence_checker_; |
| 196 | 199 |
| 197 DISALLOW_COPY_AND_ASSIGN(DriveServiceOnWorker); | 200 DISALLOW_COPY_AND_ASSIGN(DriveServiceOnWorker); |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 } // namespace drive_backend | 203 } // namespace drive_backend |
| 201 } // namespace sync_file_system | 204 } // namespace sync_file_system |
| 202 | 205 |
| 203 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER
_H_ | 206 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER
_H_ |
| OLD | NEW |