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_SYNC_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 const PendingTask& right) const; | 134 const PendingTask& right) const; |
135 }; | 135 }; |
136 | 136 |
137 // Non-static version of NotifyTaskDone. | 137 // Non-static version of NotifyTaskDone. |
138 void NotifyTaskDoneBody(scoped_ptr<SyncTaskToken> token, | 138 void NotifyTaskDoneBody(scoped_ptr<SyncTaskToken> token, |
139 SyncStatusCode status); | 139 SyncStatusCode status); |
140 | 140 |
141 // Non-static version of UpdateBlockingFactor. | 141 // Non-static version of UpdateBlockingFactor. |
142 void UpdateBlockingFactorBody(scoped_ptr<SyncTaskToken> foreground_task_token, | 142 void UpdateBlockingFactorBody(scoped_ptr<SyncTaskToken> foreground_task_token, |
143 scoped_ptr<SyncTaskToken> background_task_token, | 143 scoped_ptr<SyncTaskToken> background_task_token, |
| 144 scoped_ptr<TaskLogger::TaskLog> task_log, |
144 scoped_ptr<BlockingFactor> blocking_factor, | 145 scoped_ptr<BlockingFactor> blocking_factor, |
145 const Continuation& continuation); | 146 const Continuation& continuation); |
146 | 147 |
147 // This should be called when an async task needs to get a task token. | 148 // This should be called when an async task needs to get a task token. |
148 scoped_ptr<SyncTaskToken> GetToken(const tracked_objects::Location& from_here, | 149 scoped_ptr<SyncTaskToken> GetToken(const tracked_objects::Location& from_here, |
149 const SyncStatusCallback& callback); | 150 const SyncStatusCallback& callback); |
150 | 151 |
151 scoped_ptr<SyncTaskToken> GetTokenForBackgroundTask( | 152 scoped_ptr<SyncTaskToken> GetTokenForBackgroundTask( |
152 const tracked_objects::Location& from_here, | 153 const tracked_objects::Location& from_here, |
153 const SyncStatusCallback& callback, | 154 const SyncStatusCallback& callback, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 189 |
189 TaskDependencyManager dependency_manager_; | 190 TaskDependencyManager dependency_manager_; |
190 | 191 |
191 DISALLOW_COPY_AND_ASSIGN(SyncTaskManager); | 192 DISALLOW_COPY_AND_ASSIGN(SyncTaskManager); |
192 }; | 193 }; |
193 | 194 |
194 } // namespace drive_backend | 195 } // namespace drive_backend |
195 } // namespace sync_file_system | 196 } // namespace sync_file_system |
196 | 197 |
197 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ | 198 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ |
OLD | NEW |