| 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/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/drive/drive_api_service.h" | 9 #include "chrome/browser/drive/drive_api_service.h" |
| 10 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 10 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 const base::FilePath& base_dir, | 23 const base::FilePath& base_dir, |
| 24 base::SequencedTaskRunner* task_runner, | 24 base::SequencedTaskRunner* task_runner, |
| 25 scoped_ptr<drive::DriveAPIService> drive_service, | 25 scoped_ptr<drive::DriveAPIService> drive_service, |
| 26 drive::DriveNotificationManager* notification_manager, | 26 drive::DriveNotificationManager* notification_manager, |
| 27 ExtensionService* extension_service) | 27 ExtensionService* extension_service) |
| 28 : base_dir_(base_dir), | 28 : base_dir_(base_dir), |
| 29 task_runner_(task_runner), | 29 task_runner_(task_runner), |
| 30 drive_service_(drive_service.Pass()), | 30 drive_service_(drive_service.Pass()), |
| 31 notification_manager_(notification_manager), | 31 notification_manager_(notification_manager), |
| 32 extension_service_(extension_service), | 32 extension_service_(extension_service), |
| 33 task_manager_(weak_ptr_factory_.GetWeakPtr()), | 33 weak_ptr_factory_(this), |
| 34 weak_ptr_factory_(this) { | 34 task_manager_(weak_ptr_factory_.GetWeakPtr()) { |
| 35 } | 35 } |
| 36 | 36 |
| 37 SyncEngine::~SyncEngine() { | 37 SyncEngine::~SyncEngine() { |
| 38 NOTIMPLEMENTED(); | 38 NOTIMPLEMENTED(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void SyncEngine::Initialize() { | 41 void SyncEngine::Initialize() { |
| 42 task_manager_.Initialize(SYNC_STATUS_OK); | 42 task_manager_.Initialize(SYNC_STATUS_OK); |
| 43 | 43 |
| 44 SyncEngineInitializer* initializer = | 44 SyncEngineInitializer* initializer = |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 225 } |
| 226 | 226 |
| 227 void SyncEngine::DidApplyLocalChange(LocalToRemoteSyncer* syncer, | 227 void SyncEngine::DidApplyLocalChange(LocalToRemoteSyncer* syncer, |
| 228 const SyncStatusCallback& callback, | 228 const SyncStatusCallback& callback, |
| 229 SyncStatusCode status) { | 229 SyncStatusCode status) { |
| 230 NOTIMPLEMENTED(); | 230 NOTIMPLEMENTED(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace drive_backend | 233 } // namespace drive_backend |
| 234 } // namespace sync_file_system | 234 } // namespace sync_file_system |
| OLD | NEW |