OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
7 | 7 |
8 #include "components/sync_driver/sync_client.h" | 8 #include "components/sync_driver/sync_client.h" |
9 | 9 |
10 namespace sync_driver { | 10 namespace sync_driver { |
(...skipping 12 matching lines...) Expand all Loading... |
23 PrefService* GetPrefService() override; | 23 PrefService* GetPrefService() override; |
24 bookmarks::BookmarkModel* GetBookmarkModel() override; | 24 bookmarks::BookmarkModel* GetBookmarkModel() override; |
25 favicon::FaviconService* GetFaviconService() override; | 25 favicon::FaviconService* GetFaviconService() override; |
26 history::HistoryService* GetHistoryService() override; | 26 history::HistoryService* GetHistoryService() override; |
27 scoped_refptr<password_manager::PasswordStore> GetPasswordStore() override; | 27 scoped_refptr<password_manager::PasswordStore> GetPasswordStore() override; |
28 base::Closure GetPasswordStateChangedCallback() override; | 28 base::Closure GetPasswordStateChangedCallback() override; |
29 autofill::PersonalDataManager* GetPersonalDataManager() override; | 29 autofill::PersonalDataManager* GetPersonalDataManager() override; |
30 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService() override; | 30 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService() override; |
31 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; | 31 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; |
32 scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() override; | 32 scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() override; |
| 33 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override; |
33 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( | 34 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( |
34 syncer::ModelType type) override; | 35 syncer::ModelType type) override; |
35 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( | 36 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( |
36 syncer::ModelSafeGroup group, | 37 syncer::ModelSafeGroup group, |
37 syncer::WorkerLoopDestructionObserver* observer) override; | 38 syncer::WorkerLoopDestructionObserver* observer) override; |
38 SyncApiComponentFactory* GetSyncApiComponentFactory() override; | 39 SyncApiComponentFactory* GetSyncApiComponentFactory() override; |
39 | 40 |
40 private: | 41 private: |
41 SyncApiComponentFactory* factory_; | 42 SyncApiComponentFactory* factory_; |
42 scoped_ptr<FakeSyncService> sync_service_; | 43 scoped_ptr<FakeSyncService> sync_service_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); | 45 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace sync_driver | 48 } // namespace sync_driver |
48 | 49 |
49 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 50 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
OLD | NEW |