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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.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/remote_to_local_syncer.h " 5 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h "
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
15 #include "chrome/browser/drive/drive_api_util.h"
16 #include "chrome/browser/drive/drive_service_interface.h"
17 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" 15 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h"
18 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" 16 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
19 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
20 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" 18 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
21 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" 19 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
22 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" 20 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
23 #include "chrome/browser/sync_file_system/drive_backend/task_dependency_manager. h" 21 #include "chrome/browser/sync_file_system/drive_backend/task_dependency_manager. h"
24 #include "chrome/browser/sync_file_system/logger.h" 22 #include "chrome/browser/sync_file_system/logger.h"
25 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" 23 #include "chrome/browser/sync_file_system/syncable_file_system_util.h"
24 #include "components/drive/drive_api_util.h"
25 #include "components/drive/service/drive_service_interface.h"
26 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
27 #include "google_apis/drive/drive_api_parser.h" 27 #include "google_apis/drive/drive_api_parser.h"
28 #include "storage/common/fileapi/file_system_util.h" 28 #include "storage/common/fileapi/file_system_util.h"
29 29
30 namespace sync_file_system { 30 namespace sync_file_system {
31 namespace drive_backend { 31 namespace drive_backend {
32 32
33 namespace { 33 namespace {
34 34
35 bool BuildFileSystemURL(MetadataDatabase* metadata_database, 35 bool BuildFileSystemURL(MetadataDatabase* metadata_database,
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 SyncStatusCallback RemoteToLocalSyncer::SyncCompletedCallback( 861 SyncStatusCallback RemoteToLocalSyncer::SyncCompletedCallback(
862 scoped_ptr<SyncTaskToken> token) { 862 scoped_ptr<SyncTaskToken> token) {
863 return base::Bind(&RemoteToLocalSyncer::SyncCompleted, 863 return base::Bind(&RemoteToLocalSyncer::SyncCompleted,
864 weak_ptr_factory_.GetWeakPtr(), 864 weak_ptr_factory_.GetWeakPtr(),
865 base::Passed(&token)); 865 base::Passed(&token));
866 } 866 }
867 867
868 } // namespace drive_backend 868 } // namespace drive_backend
869 } // namespace sync_file_system 869 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698