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

Side by Side Diff: components/sync/driver/fake_sync_client.h

Issue 2799653006: Revert of [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Created 3 years, 8 months 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
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 <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 23 matching lines...) Expand all
34 history::HistoryService* GetHistoryService() override; 34 history::HistoryService* GetHistoryService() override;
35 bool HasPasswordStore() override; 35 bool HasPasswordStore() override;
36 base::Closure GetPasswordStateChangedCallback() override; 36 base::Closure GetPasswordStateChangedCallback() override;
37 SyncApiComponentFactory::RegisterDataTypesMethod 37 SyncApiComponentFactory::RegisterDataTypesMethod
38 GetRegisterPlatformTypesCallback() override; 38 GetRegisterPlatformTypesCallback() override;
39 autofill::PersonalDataManager* GetPersonalDataManager() override; 39 autofill::PersonalDataManager* GetPersonalDataManager() override;
40 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; 40 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override;
41 invalidation::InvalidationService* GetInvalidationService() override; 41 invalidation::InvalidationService* GetInvalidationService() override;
42 scoped_refptr<ExtensionsActivity> GetExtensionsActivity() override; 42 scoped_refptr<ExtensionsActivity> GetExtensionsActivity() override;
43 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override; 43 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override;
44 ServiceProvider GetSyncableServiceForType(ModelType type) override; 44 base::WeakPtr<SyncableService> GetSyncableServiceForType(
45 ModelType type) override;
45 base::WeakPtr<ModelTypeSyncBridge> GetSyncBridgeForModelType( 46 base::WeakPtr<ModelTypeSyncBridge> GetSyncBridgeForModelType(
46 ModelType type) override; 47 ModelType type) override;
47 scoped_refptr<ModelSafeWorker> CreateModelWorkerForGroup( 48 scoped_refptr<ModelSafeWorker> CreateModelWorkerForGroup(
48 ModelSafeGroup group) override; 49 ModelSafeGroup group) override;
49 SyncApiComponentFactory* GetSyncApiComponentFactory() override; 50 SyncApiComponentFactory* GetSyncApiComponentFactory() override;
50 51
51 void SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge); 52 void SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge);
52 53
53 private: 54 private:
54 sync_preferences::TestingPrefServiceSyncable pref_service_; 55 sync_preferences::TestingPrefServiceSyncable pref_service_;
55 ModelTypeSyncBridge* bridge_; 56 ModelTypeSyncBridge* bridge_;
56 SyncApiComponentFactory* factory_; 57 SyncApiComponentFactory* factory_;
57 std::unique_ptr<FakeSyncService> sync_service_; 58 std::unique_ptr<FakeSyncService> sync_service_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); 60 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient);
60 }; 61 };
61 62
62 } // namespace syncer 63 } // namespace syncer
63 64
64 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 65 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
OLDNEW
« no previous file with comments | « components/sync/driver/fake_generic_change_processor.cc ('k') | components/sync/driver/fake_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698