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

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

Issue 1422773004: [sync] Abstract most ProfileSyncService //chrome deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pss_chrome_signin_deps
Patch Set: Response to review Created 5 years, 1 month 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_SYNC_CLIENT_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 17 matching lines...) Expand all
28 } // namespace bookmarks 28 } // namespace bookmarks
29 29
30 namespace favicon { 30 namespace favicon {
31 class FaviconService; 31 class FaviconService;
32 } // namespace favicon 32 } // namespace favicon
33 33
34 namespace history { 34 namespace history {
35 class HistoryService; 35 class HistoryService;
36 } // namespace history 36 } // namespace history
37 37
38 namespace invalidation {
39 class InvalidationService;
40 } // namespace invalidation
41
38 namespace password_manager { 42 namespace password_manager {
39 class PasswordStore; 43 class PasswordStore;
40 } // namespace password_manager 44 } // namespace password_manager
41 45
42 namespace syncer { 46 namespace syncer {
43 class SyncableService; 47 class SyncableService;
44 } // namespace syncer 48 } // namespace syncer
45 49
46 namespace sync_sessions { 50 namespace sync_sessions {
47 class SyncSessionsClient; 51 class SyncSessionsClient;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual ClearBrowsingDataCallback GetClearBrowsingDataCallback() = 0; 91 virtual ClearBrowsingDataCallback GetClearBrowsingDataCallback() = 0;
88 92
89 // Returns a callback that will be invoked when password sync state has 93 // Returns a callback that will be invoked when password sync state has
90 // potentially been changed. 94 // potentially been changed.
91 virtual base::Closure GetPasswordStateChangedCallback() = 0; 95 virtual base::Closure GetPasswordStateChangedCallback() = 0;
92 96
93 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0; 97 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0;
94 virtual scoped_refptr<autofill::AutofillWebDataService> 98 virtual scoped_refptr<autofill::AutofillWebDataService>
95 GetWebDataService() = 0; 99 GetWebDataService() = 0;
96 virtual BookmarkUndoService* GetBookmarkUndoServiceIfExists() = 0; 100 virtual BookmarkUndoService* GetBookmarkUndoServiceIfExists() = 0;
101 virtual invalidation::InvalidationService* GetInvalidationService() = 0;
97 virtual scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() = 0; 102 virtual scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() = 0;
98 virtual sync_sessions::SyncSessionsClient* GetSyncSessionsClient() = 0; 103 virtual sync_sessions::SyncSessionsClient* GetSyncSessionsClient() = 0;
99 104
100 // Returns a weak pointer to the syncable service specified by |type|. 105 // Returns a weak pointer to the syncable service specified by |type|.
101 // Weak pointer may be unset if service is already destroyed. 106 // Weak pointer may be unset if service is already destroyed.
102 // Note: Should only be called from the model type thread. 107 // Note: Should only be called from the model type thread.
103 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 108 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
104 syncer::ModelType type) = 0; 109 syncer::ModelType type) = 0;
105 110
106 // Creates and returns a new ModelSafeWorker for the group, or null if one 111 // Creates and returns a new ModelSafeWorker for the group, or null if one
107 // cannot be created. 112 // cannot be created.
108 // TODO(maxbogue): Move this inside SyncApiComponentFactory. 113 // TODO(maxbogue): Move this inside SyncApiComponentFactory.
109 virtual scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( 114 virtual scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
110 syncer::ModelSafeGroup group, 115 syncer::ModelSafeGroup group,
111 syncer::WorkerLoopDestructionObserver* observer) = 0; 116 syncer::WorkerLoopDestructionObserver* observer) = 0;
112 117
113 // Returns the current SyncApiComponentFactory instance. 118 // Returns the current SyncApiComponentFactory instance.
114 virtual SyncApiComponentFactory* GetSyncApiComponentFactory() = 0; 119 virtual SyncApiComponentFactory* GetSyncApiComponentFactory() = 0;
115 120
116 private: 121 private:
117 DISALLOW_COPY_AND_ASSIGN(SyncClient); 122 DISALLOW_COPY_AND_ASSIGN(SyncClient);
118 }; 123 };
119 124
120 } // namespace sync_driver 125 } // namespace sync_driver
121 126
122 #endif // COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_ 127 #endif // COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_
OLDNEW
« chrome/browser/sync/profile_sync_service.cc ('K') | « components/sync_driver/fake_sync_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698