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

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

Issue 2769113002: [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Rebase and removing dependent 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 base::WeakPtr<SyncableService> GetSyncableServiceForType( 44 ServiceProvider GetSyncableServiceForType(ModelType type) override;
45 ModelType type) override;
46 base::WeakPtr<ModelTypeSyncBridge> GetSyncBridgeForModelType( 45 base::WeakPtr<ModelTypeSyncBridge> GetSyncBridgeForModelType(
47 ModelType type) override; 46 ModelType type) override;
48 scoped_refptr<ModelSafeWorker> CreateModelWorkerForGroup( 47 scoped_refptr<ModelSafeWorker> CreateModelWorkerForGroup(
49 ModelSafeGroup group) override; 48 ModelSafeGroup group) override;
50 SyncApiComponentFactory* GetSyncApiComponentFactory() override; 49 SyncApiComponentFactory* GetSyncApiComponentFactory() override;
51 50
52 void SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge); 51 void SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge);
53 52
54 private: 53 private:
55 sync_preferences::TestingPrefServiceSyncable pref_service_; 54 sync_preferences::TestingPrefServiceSyncable pref_service_;
56 ModelTypeSyncBridge* bridge_; 55 ModelTypeSyncBridge* bridge_;
57 SyncApiComponentFactory* factory_; 56 SyncApiComponentFactory* factory_;
58 std::unique_ptr<FakeSyncService> sync_service_; 57 std::unique_ptr<FakeSyncService> sync_service_;
59 58
60 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); 59 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient);
61 }; 60 };
62 61
63 } // namespace syncer 62 } // namespace syncer
64 63
65 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 64 #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