| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/drive/drive_api_service.h" | 10 #include "chrome/browser/drive/drive_api_service.h" |
| 11 #include "chrome/browser/drive/drive_notification_manager.h" | 11 #include "chrome/browser/drive/drive_notification_manager.h" |
| 12 #include "chrome/browser/drive/drive_notification_manager_factory.h" | 12 #include "chrome/browser/drive/drive_notification_manager_factory.h" |
| 13 #include "chrome/browser/drive/drive_service_interface.h" | 13 #include "chrome/browser/drive/drive_service_interface.h" |
| 14 #include "chrome/browser/drive/drive_uploader.h" | 14 #include "chrome/browser/drive/drive_uploader.h" |
| 15 #include "chrome/browser/drive/drive_uploader.h" | 15 #include "chrome/browser/drive/drive_uploader.h" |
| 16 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
| 17 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
| 18 #include "chrome/browser/extensions/extension_system_factory.h" | 18 #include "chrome/browser/extensions/extension_system_factory.h" |
| 19 #include "chrome/browser/google_apis/drive_api_url_generator.h" | |
| 20 #include "chrome/browser/google_apis/gdata_wapi_url_generator.h" | |
| 21 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 20 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
| 23 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 21 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 24 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" | 22 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" |
| 25 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 23 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
| 26 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" | 24 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" |
| 27 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
" | 25 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
" |
| 28 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 26 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
| 29 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" | 27 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" |
| 30 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h
" | 28 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h
" |
| 31 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" | 29 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" |
| 32 #include "chrome/browser/sync_file_system/drive_backend/uninstall_app_task.h" | 30 #include "chrome/browser/sync_file_system/drive_backend/uninstall_app_task.h" |
| 33 #include "chrome/browser/sync_file_system/file_status_observer.h" | 31 #include "chrome/browser/sync_file_system/file_status_observer.h" |
| 34 #include "chrome/browser/sync_file_system/logger.h" | 32 #include "chrome/browser/sync_file_system/logger.h" |
| 35 #include "chrome/browser/sync_file_system/sync_task.h" | 33 #include "chrome/browser/sync_file_system/sync_task.h" |
| 36 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 34 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 37 #include "content/public/browser/browser_thread.h" | 35 #include "content/public/browser/browser_thread.h" |
| 38 #include "extensions/common/extension.h" | 36 #include "extensions/common/extension.h" |
| 37 #include "google_apis/drive/drive_api_url_generator.h" |
| 38 #include "google_apis/drive/gdata_wapi_url_generator.h" |
| 39 #include "webkit/common/blob/scoped_file.h" | 39 #include "webkit/common/blob/scoped_file.h" |
| 40 | 40 |
| 41 namespace sync_file_system { | 41 namespace sync_file_system { |
| 42 namespace drive_backend { | 42 namespace drive_backend { |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 | 45 |
| 46 void EmptyStatusCallback(SyncStatusCode status) {} | 46 void EmptyStatusCallback(SyncStatusCode status) {} |
| 47 | 47 |
| 48 } // namespace | 48 } // namespace |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 tracker.tracker_kind() == TRACKER_KIND_APP_ROOT; | 570 tracker.tracker_kind() == TRACKER_KIND_APP_ROOT; |
| 571 if (is_app_enabled && !is_app_root_tracker_enabled) | 571 if (is_app_enabled && !is_app_root_tracker_enabled) |
| 572 EnableOrigin(origin, base::Bind(&EmptyStatusCallback)); | 572 EnableOrigin(origin, base::Bind(&EmptyStatusCallback)); |
| 573 else if (!is_app_enabled && is_app_root_tracker_enabled) | 573 else if (!is_app_enabled && is_app_root_tracker_enabled) |
| 574 DisableOrigin(origin, base::Bind(&EmptyStatusCallback)); | 574 DisableOrigin(origin, base::Bind(&EmptyStatusCallback)); |
| 575 } | 575 } |
| 576 } | 576 } |
| 577 | 577 |
| 578 } // namespace drive_backend | 578 } // namespace drive_backend |
| 579 } // namespace sync_file_system | 579 } // namespace sync_file_system |
| OLD | NEW |