| 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 10 matching lines...) Expand all Loading... |
| 21 const base::FilePath& base_dir, | 21 const base::FilePath& base_dir, |
| 22 base::SequencedTaskRunner* task_runner, | 22 base::SequencedTaskRunner* task_runner, |
| 23 scoped_ptr<drive::DriveAPIService> drive_service, | 23 scoped_ptr<drive::DriveAPIService> drive_service, |
| 24 drive::DriveNotificationManager* notification_manager, | 24 drive::DriveNotificationManager* notification_manager, |
| 25 ExtensionService* extension_service) | 25 ExtensionService* extension_service) |
| 26 : base_dir_(base_dir), | 26 : base_dir_(base_dir), |
| 27 task_runner_(task_runner), | 27 task_runner_(task_runner), |
| 28 drive_service_(drive_service.Pass()), | 28 drive_service_(drive_service.Pass()), |
| 29 notification_manager_(notification_manager), | 29 notification_manager_(notification_manager), |
| 30 extension_service_(extension_service), | 30 extension_service_(extension_service), |
| 31 weak_ptr_factory_(this), | 31 task_manager_(weak_ptr_factory_.GetWeakPtr()), |
| 32 task_manager_(weak_ptr_factory_.GetWeakPtr()) { | 32 weak_ptr_factory_(this) { |
| 33 } | 33 } |
| 34 | 34 |
| 35 SyncEngine::~SyncEngine() { | 35 SyncEngine::~SyncEngine() { |
| 36 NOTIMPLEMENTED(); | 36 NOTIMPLEMENTED(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void SyncEngine::Initialize() { | 39 void SyncEngine::Initialize() { |
| 40 task_manager_.Initialize(SYNC_STATUS_OK); | 40 task_manager_.Initialize(SYNC_STATUS_OK); |
| 41 | 41 |
| 42 SyncEngineInitializer* initializer = | 42 SyncEngineInitializer* initializer = |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 238 } |
| 239 | 239 |
| 240 void SyncEngine::DidApplyLocalChange(LocalToRemoteSyncer* syncer, | 240 void SyncEngine::DidApplyLocalChange(LocalToRemoteSyncer* syncer, |
| 241 const SyncStatusCallback& callback, | 241 const SyncStatusCallback& callback, |
| 242 SyncStatusCode status) { | 242 SyncStatusCode status) { |
| 243 NOTIMPLEMENTED(); | 243 NOTIMPLEMENTED(); |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace drive_backend | 246 } // namespace drive_backend |
| 247 } // namespace sync_file_system | 247 } // namespace sync_file_system |
| OLD | NEW |