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

Side by Side Diff: components/sync_driver/fake_sync_client.h

Issue 1460723004: [Sync] Remove the last datatype-specific deps from sync_driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete outdated comment. Created 5 years 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
« no previous file with comments | « components/sync_driver/DEPS ('k') | components/sync_driver/fake_sync_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
11 class FakeSyncService; 11 class FakeSyncService;
12 12
13 // Fake implementation of SyncClient interface for tests. 13 // Fake implementation of SyncClient interface for tests.
14 class FakeSyncClient : public SyncClient { 14 class FakeSyncClient : public SyncClient {
15 public: 15 public:
16 FakeSyncClient(); 16 FakeSyncClient();
17 explicit FakeSyncClient(SyncApiComponentFactory* factory); 17 explicit FakeSyncClient(SyncApiComponentFactory* factory);
18 ~FakeSyncClient() override; 18 ~FakeSyncClient() override;
19 19
20 void Initialize(SyncService* sync_service) override; 20 void Initialize(SyncService* sync_service) override;
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;
28 ClearBrowsingDataCallback GetClearBrowsingDataCallback() override; 27 ClearBrowsingDataCallback GetClearBrowsingDataCallback() override;
29 base::Closure GetPasswordStateChangedCallback() override; 28 base::Closure GetPasswordStateChangedCallback() override;
30 sync_driver::SyncApiComponentFactory::RegisterDataTypesMethod 29 sync_driver::SyncApiComponentFactory::RegisterDataTypesMethod
31 GetRegisterPlatformTypesCallback() override; 30 GetRegisterPlatformTypesCallback() override;
32 autofill::PersonalDataManager* GetPersonalDataManager() override; 31 autofill::PersonalDataManager* GetPersonalDataManager() override;
33 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService() override;
34 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; 32 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override;
35 invalidation::InvalidationService* GetInvalidationService() override; 33 invalidation::InvalidationService* GetInvalidationService() override;
36 scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() override; 34 scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() override;
37 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override; 35 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override;
38 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 36 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
39 syncer::ModelType type) override; 37 syncer::ModelType type) override;
40 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( 38 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
41 syncer::ModelSafeGroup group, 39 syncer::ModelSafeGroup group,
42 syncer::WorkerLoopDestructionObserver* observer) override; 40 syncer::WorkerLoopDestructionObserver* observer) override;
43 SyncApiComponentFactory* GetSyncApiComponentFactory() override; 41 SyncApiComponentFactory* GetSyncApiComponentFactory() override;
44 42
45 private: 43 private:
46 SyncApiComponentFactory* factory_; 44 SyncApiComponentFactory* factory_;
47 scoped_ptr<FakeSyncService> sync_service_; 45 scoped_ptr<FakeSyncService> sync_service_;
48 46
49 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); 47 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient);
50 }; 48 };
51 49
52 } // namespace sync_driver 50 } // namespace sync_driver
53 51
54 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 52 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
OLDNEW
« no previous file with comments | « components/sync_driver/DEPS ('k') | components/sync_driver/fake_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698