| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 SyncService* GetSyncService() override; | 22 SyncService* GetSyncService() override; |
| 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 autofill::PersonalDataManager* GetPersonalDataManager() override; | 28 autofill::PersonalDataManager* GetPersonalDataManager() override; |
| 29 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService() override; | 29 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService() override; |
| 30 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; | 30 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; |
| 31 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override; |
| 31 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( | 32 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( |
| 32 syncer::ModelType type) override; | 33 syncer::ModelType type) override; |
| 33 SyncApiComponentFactory* GetSyncApiComponentFactory() override; | 34 SyncApiComponentFactory* GetSyncApiComponentFactory() override; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 SyncApiComponentFactory* factory_; | 37 SyncApiComponentFactory* factory_; |
| 37 scoped_ptr<FakeSyncService> sync_service_; | 38 scoped_ptr<FakeSyncService> sync_service_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); | 40 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace sync_driver | 43 } // namespace sync_driver |
| 43 | 44 |
| 44 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ | 45 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ |
| OLD | NEW |