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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 const std::string& new_title, | 137 const std::string& new_title, |
138 const base::Time& last_modified, | 138 const base::Time& last_modified, |
139 const base::Time& last_viewed_by_me, | 139 const base::Time& last_viewed_by_me, |
140 const google_apis::GetResourceEntryCallback& callback); | 140 const google_apis::GetResourceEntryCallback& callback); |
141 | 141 |
142 // Adds a RenameResource operation to the queue. | 142 // Adds a RenameResource operation to the queue. |
143 void RenameResource(const std::string& resource_id, | 143 void RenameResource(const std::string& resource_id, |
144 const std::string& new_title, | 144 const std::string& new_title, |
145 const google_apis::EntryActionCallback& callback); | 145 const google_apis::EntryActionCallback& callback); |
146 | 146 |
147 // Adds a TouchResource operation to the queue. | |
148 void TouchResource(const std::string& resource_id, | |
149 const base::Time& modified_date, | |
150 const base::Time& last_viewed_by_me_date, | |
151 const google_apis::GetResourceEntryCallback& callback); | |
152 | |
153 // Adds a AddResourceToDirectory operation to the queue. | 147 // Adds a AddResourceToDirectory operation to the queue. |
154 void AddResourceToDirectory(const std::string& parent_resource_id, | 148 void AddResourceToDirectory(const std::string& parent_resource_id, |
155 const std::string& resource_id, | 149 const std::string& resource_id, |
156 const google_apis::EntryActionCallback& callback); | 150 const google_apis::EntryActionCallback& callback); |
157 | 151 |
158 // Adds a RemoveResourceFromDirectory operation to the queue. | 152 // Adds a RemoveResourceFromDirectory operation to the queue. |
159 void RemoveResourceFromDirectory( | 153 void RemoveResourceFromDirectory( |
160 const std::string& parent_resource_id, | 154 const std::string& parent_resource_id, |
161 const std::string& resource_id, | 155 const std::string& resource_id, |
162 const ClientContext& context, | 156 const ClientContext& context, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 396 |
403 // Note: This should remain the last member so it'll be destroyed and | 397 // Note: This should remain the last member so it'll be destroyed and |
404 // invalidate its weak pointers before any other members are destroyed. | 398 // invalidate its weak pointers before any other members are destroyed. |
405 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; | 399 base::WeakPtrFactory<JobScheduler> weak_ptr_factory_; |
406 DISALLOW_COPY_AND_ASSIGN(JobScheduler); | 400 DISALLOW_COPY_AND_ASSIGN(JobScheduler); |
407 }; | 401 }; |
408 | 402 |
409 } // namespace drive | 403 } // namespace drive |
410 | 404 |
411 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ | 405 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_JOB_SCHEDULER_H_ |
OLD | NEW |