Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
12 #include "base/threading/sequenced_worker_pool.h" 12 #include "base/threading/sequenced_worker_pool.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/drive/drive_api_service.h"
16 #include "chrome/browser/drive/drive_notification_manager.h"
17 #include "chrome/browser/drive/drive_notification_manager_factory.h" 15 #include "chrome/browser/drive/drive_notification_manager_factory.h"
18 #include "chrome/browser/drive/drive_service_interface.h"
19 #include "chrome/browser/drive/drive_uploader.h"
20 #include "chrome/browser/extensions/extension_service.h" 16 #include "chrome/browser/extensions/extension_service.h"
21 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
23 #include "chrome/browser/signin/signin_manager_factory.h" 19 #include "chrome/browser/signin/signin_manager_factory.h"
24 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" 20 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h"
25 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" 21 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h"
26 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h" 22 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h"
27 #include "chrome/browser/sync_file_system/drive_backend/drive_service_on_worker. h" 23 #include "chrome/browser/sync_file_system/drive_backend/drive_service_on_worker. h"
28 #include "chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h" 24 #include "chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h"
29 #include "chrome/browser/sync_file_system/drive_backend/drive_uploader_on_worker .h" 25 #include "chrome/browser/sync_file_system/drive_backend/drive_uploader_on_worker .h"
30 #include "chrome/browser/sync_file_system/drive_backend/drive_uploader_wrapper.h " 26 #include "chrome/browser/sync_file_system/drive_backend/drive_uploader_wrapper.h "
31 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" 27 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h"
32 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h " 28 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h "
33 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 29 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
34 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" 30 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h"
35 #include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_ on_worker.h" 31 #include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_ on_worker.h"
36 #include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_ wrapper.h" 32 #include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_ wrapper.h"
37 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h " 33 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h "
38 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" 34 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
39 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer. h" 35 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer. h"
40 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" 36 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h"
41 #include "chrome/browser/sync_file_system/drive_backend/sync_worker.h" 37 #include "chrome/browser/sync_file_system/drive_backend/sync_worker.h"
42 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" 38 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h"
43 #include "chrome/browser/sync_file_system/drive_backend/uninstall_app_task.h" 39 #include "chrome/browser/sync_file_system/drive_backend/uninstall_app_task.h"
44 #include "chrome/browser/sync_file_system/file_status_observer.h" 40 #include "chrome/browser/sync_file_system/file_status_observer.h"
45 #include "chrome/browser/sync_file_system/logger.h" 41 #include "chrome/browser/sync_file_system/logger.h"
46 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 42 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
43 #include "components/drive/drive_notification_manager.h"
44 #include "components/drive/drive_uploader.h"
45 #include "components/drive/service/drive_api_service.h"
46 #include "components/drive/service/drive_service_interface.h"
47 #include "components/signin/core/browser/profile_oauth2_token_service.h" 47 #include "components/signin/core/browser/profile_oauth2_token_service.h"
48 #include "components/signin/core/browser/signin_manager.h" 48 #include "components/signin/core/browser/signin_manager.h"
49 #include "content/public/browser/browser_thread.h" 49 #include "content/public/browser/browser_thread.h"
50 #include "extensions/browser/extension_system.h" 50 #include "extensions/browser/extension_system.h"
51 #include "extensions/browser/extension_system_provider.h" 51 #include "extensions/browser/extension_system_provider.h"
52 #include "extensions/browser/extensions_browser_client.h" 52 #include "extensions/browser/extensions_browser_client.h"
53 #include "extensions/common/extension.h" 53 #include "extensions/common/extension.h"
54 #include "google_apis/drive/drive_api_url_generator.h" 54 #include "google_apis/drive/drive_api_url_generator.h"
55 #include "net/url_request/url_request_context_getter.h" 55 #include "net/url_request/url_request_context_getter.h"
56 #include "storage/browser/blob/scoped_file.h" 56 #include "storage/browser/blob/scoped_file.h"
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 784
785 SyncStatusCallback SyncEngine::TrackCallback( 785 SyncStatusCallback SyncEngine::TrackCallback(
786 const SyncStatusCallback& callback) { 786 const SyncStatusCallback& callback) {
787 return callback_tracker_.Register( 787 return callback_tracker_.Register(
788 base::Bind(callback, SYNC_STATUS_ABORT), 788 base::Bind(callback, SYNC_STATUS_ABORT),
789 callback); 789 callback);
790 } 790 }
791 791
792 } // namespace drive_backend 792 } // namespace drive_backend
793 } // namespace sync_file_system 793 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698