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_macros.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
15 #include "base/threading/thread_task_runner_handle.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" |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 | 776 |
777 SyncStatusCallback SyncEngine::TrackCallback( | 777 SyncStatusCallback SyncEngine::TrackCallback( |
778 const SyncStatusCallback& callback) { | 778 const SyncStatusCallback& callback) { |
779 return callback_tracker_.Register( | 779 return callback_tracker_.Register( |
780 base::Bind(callback, SYNC_STATUS_ABORT), | 780 base::Bind(callback, SYNC_STATUS_ABORT), |
781 callback); | 781 callback); |
782 } | 782 } |
783 | 783 |
784 } // namespace drive_backend | 784 } // namespace drive_backend |
785 } // namespace sync_file_system | 785 } // namespace sync_file_system |
OLD | NEW |