OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_engine.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/thread_task_runner_handle.h" | |
15 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/drive/drive_notification_manager_factory.h" | 18 #include "chrome/browser/drive/drive_notification_manager_factory.h" |
19 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" |
20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 21 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
22 #include "chrome/browser/signin/signin_manager_factory.h" | 22 #include "chrome/browser/signin/signin_manager_factory.h" |
23 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 23 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
24 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" | 24 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" |
25 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 25 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 | 777 |
778 SyncStatusCallback SyncEngine::TrackCallback( | 778 SyncStatusCallback SyncEngine::TrackCallback( |
779 const SyncStatusCallback& callback) { | 779 const SyncStatusCallback& callback) { |
780 return callback_tracker_.Register( | 780 return callback_tracker_.Register( |
781 base::Bind(callback, SYNC_STATUS_ABORT), | 781 base::Bind(callback, SYNC_STATUS_ABORT), |
782 callback); | 782 callback); |
783 } | 783 } |
784 | 784 |
785 } // namespace drive_backend | 785 } // namespace drive_backend |
786 } // namespace sync_file_system | 786 } // namespace sync_file_system |
OLD | NEW |