| 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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 const std::string& content_type, | 177 const std::string& content_type, |
| 178 const ClientContext& context, | 178 const ClientContext& context, |
| 179 const google_apis::GetResourceEntryCallback& callback); | 179 const google_apis::GetResourceEntryCallback& callback); |
| 180 | 180 |
| 181 // Adds an UploadExistingFile operation to the queue. | 181 // Adds an UploadExistingFile operation to the queue. |
| 182 void UploadExistingFile( | 182 void UploadExistingFile( |
| 183 const std::string& resource_id, | 183 const std::string& resource_id, |
| 184 const base::FilePath& drive_file_path, | 184 const base::FilePath& drive_file_path, |
| 185 const base::FilePath& local_file_path, | 185 const base::FilePath& local_file_path, |
| 186 const std::string& content_type, | 186 const std::string& content_type, |
| 187 const std::string& etag, | 187 const drive::DriveUploader::UploadExistingFileOptions& options, |
| 188 const ClientContext& context, | 188 const ClientContext& context, |
| 189 const google_apis::GetResourceEntryCallback& callback); | 189 const google_apis::GetResourceEntryCallback& callback); |
| 190 | 190 |
| 191 // Adds a CreateFile operation to the queue. | 191 // Adds a CreateFile operation to the queue. |
| 192 void CreateFile(const std::string& parent_resource_id, | 192 void CreateFile(const std::string& parent_resource_id, |
| 193 const base::FilePath& drive_file_path, | 193 const base::FilePath& drive_file_path, |
| 194 const std::string& title, | 194 const std::string& title, |
| 195 const std::string& content_type, | 195 const std::string& content_type, |
| 196 const ClientContext& context, | 196 const ClientContext& context, |
| 197 const google_apis::GetResourceEntryCallback& callback); | 197 const google_apis::GetResourceEntryCallback& callback); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 391 |
| 392 // Note: This should remain the last member so it'll be destroyed and | 392 // Note: This should remain the last member so it'll be destroyed and |
| 393 // invalidate its weak pointers before any other members are destroyed. | 393 // invalidate its weak pointers before any other members are destroyed. |
| 394 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; | 394 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; |
| 395 DISALLOW_COPY_AND_ASSIGN(JobScheduler); | 395 DISALLOW_COPY_AND_ASSIGN(JobScheduler); |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 } // namespace drive | 398 } // namespace drive |
| 399 | 399 |
| 400 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ | 400 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ |
| OLD | NEW |