| 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 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | |
| 9 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 10 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
| 11 #include "chrome/browser/sync_file_system/drive_backend/task_dependency_manager.
h" | 11 #include "chrome/browser/sync_file_system/drive_backend/task_dependency_manager.
h" |
| 12 | 12 |
| 13 namespace sync_file_system { | 13 namespace sync_file_system { |
| 14 namespace drive_backend { | 14 namespace drive_backend { |
| 15 | 15 |
| 16 const int64 SyncTaskToken::kTestingTaskTokenID = -1; | 16 const int64 SyncTaskToken::kTestingTaskTokenID = -1; |
| 17 const int64 SyncTaskToken::kForegroundTaskTokenID = 0; | 17 const int64 SyncTaskToken::kForegroundTaskTokenID = 0; |
| 18 const int64 SyncTaskToken::kMinimumBackgroundTaskTokenID = 1; | 18 const int64 SyncTaskToken::kMinimumBackgroundTaskTokenID = 1; |
| 19 | 19 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const SyncStatusCallback& callback) | 146 const SyncStatusCallback& callback) |
| 147 : manager_(manager), | 147 : manager_(manager), |
| 148 task_runner_(task_runner), | 148 task_runner_(task_runner), |
| 149 token_id_(token_id), | 149 token_id_(token_id), |
| 150 callback_(callback), | 150 callback_(callback), |
| 151 task_blocker_(task_blocker.Pass()) { | 151 task_blocker_(task_blocker.Pass()) { |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace drive_backend | 154 } // namespace drive_backend |
| 155 } // namespace sync_file_system | 155 } // namespace sync_file_system |
| OLD | NEW |