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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // Adds a AddNewDirectory operation to the queue. | 145 // Adds a AddNewDirectory operation to the queue. |
146 void AddNewDirectory(const std::string& parent_resource_id, | 146 void AddNewDirectory(const std::string& parent_resource_id, |
147 const std::string& directory_name, | 147 const std::string& directory_name, |
148 const google_apis::GetResourceEntryCallback& callback); | 148 const google_apis::GetResourceEntryCallback& callback); |
149 | 149 |
150 // Adds a DownloadFile operation to the queue. | 150 // Adds a DownloadFile operation to the queue. |
151 JobID DownloadFile( | 151 JobID DownloadFile( |
152 const base::FilePath& virtual_path, | 152 const base::FilePath& virtual_path, |
153 const base::FilePath& local_cache_path, | 153 const base::FilePath& local_cache_path, |
154 const GURL& download_url, | 154 const std::string& resource_id, |
155 const ClientContext& context, | 155 const ClientContext& context, |
156 const google_apis::DownloadActionCallback& download_action_callback, | 156 const google_apis::DownloadActionCallback& download_action_callback, |
157 const google_apis::GetContentCallback& get_content_callback); | 157 const google_apis::GetContentCallback& get_content_callback); |
158 | 158 |
159 // Adds an UploadNewFile operation to the queue. | 159 // Adds an UploadNewFile operation to the queue. |
160 void UploadNewFile(const std::string& parent_resource_id, | 160 void UploadNewFile(const std::string& parent_resource_id, |
161 const base::FilePath& drive_file_path, | 161 const base::FilePath& drive_file_path, |
162 const base::FilePath& local_file_path, | 162 const base::FilePath& local_file_path, |
163 const std::string& title, | 163 const std::string& title, |
164 const std::string& content_type, | 164 const std::string& content_type, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 351 |
352 // Note: This should remain the last member so it'll be destroyed and | 352 // Note: This should remain the last member so it'll be destroyed and |
353 // invalidate its weak pointers before any other members are destroyed. | 353 // invalidate its weak pointers before any other members are destroyed. |
354 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; | 354 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; |
355 DISALLOW_COPY_AND_ASSIGN(JobScheduler); | 355 DISALLOW_COPY_AND_ASSIGN(JobScheduler); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace drive | 358 } // namespace drive |
359 | 359 |
360 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ | 360 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ |
OLD | NEW |