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

Side by Side Diff: chrome/browser/sync/chrome_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 | « no previous file | chrome/browser/sync/chrome_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 CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ 5 #ifndef CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__
6 #define CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ 6 #define CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/browsing_data/browsing_data_remover.h" 9 #include "chrome/browser/browsing_data/browsing_data_remover.h"
10 #include "chrome/browser/sync/glue/extensions_activity_monitor.h" 10 #include "chrome/browser/sync/glue/extensions_activity_monitor.h"
11 #include "components/sync_driver/sync_client.h" 11 #include "components/sync_driver/sync_client.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 namespace autofill {
16 class AutofillWebDataService;
17 }
18
19 namespace password_manager {
20 class PasswordStore;
21 }
22
15 namespace sync_driver { 23 namespace sync_driver {
16 class SyncApiComponentFactory; 24 class SyncApiComponentFactory;
17 class SyncService; 25 class SyncService;
18 } 26 }
19 27
20 namespace browser_sync { 28 namespace browser_sync {
21 29
22 class ChromeSyncClient : public sync_driver::SyncClient { 30 class ChromeSyncClient : public sync_driver::SyncClient {
23 public: 31 public:
24 explicit ChromeSyncClient(Profile* profile); 32 explicit ChromeSyncClient(Profile* profile);
25 ~ChromeSyncClient() override; 33 ~ChromeSyncClient() override;
26 34
27 // SyncClient implementation. 35 // SyncClient implementation.
28 void Initialize(sync_driver::SyncService* sync_service) override; 36 void Initialize(sync_driver::SyncService* sync_service) override;
29 sync_driver::SyncService* GetSyncService() override; 37 sync_driver::SyncService* GetSyncService() override;
30 PrefService* GetPrefService() override; 38 PrefService* GetPrefService() override;
31 bookmarks::BookmarkModel* GetBookmarkModel() override; 39 bookmarks::BookmarkModel* GetBookmarkModel() override;
32 favicon::FaviconService* GetFaviconService() override; 40 favicon::FaviconService* GetFaviconService() override;
33 history::HistoryService* GetHistoryService() override; 41 history::HistoryService* GetHistoryService() override;
34 scoped_refptr<password_manager::PasswordStore> GetPasswordStore() override;
35 sync_driver::ClearBrowsingDataCallback GetClearBrowsingDataCallback() 42 sync_driver::ClearBrowsingDataCallback GetClearBrowsingDataCallback()
36 override; 43 override;
37 base::Closure GetPasswordStateChangedCallback() override; 44 base::Closure GetPasswordStateChangedCallback() override;
38 sync_driver::SyncApiComponentFactory::RegisterDataTypesMethod 45 sync_driver::SyncApiComponentFactory::RegisterDataTypesMethod
39 GetRegisterPlatformTypesCallback() override; 46 GetRegisterPlatformTypesCallback() override;
40 autofill::PersonalDataManager* GetPersonalDataManager() override; 47 autofill::PersonalDataManager* GetPersonalDataManager() override;
41 invalidation::InvalidationService* GetInvalidationService() override; 48 invalidation::InvalidationService* GetInvalidationService() override;
42 scoped_refptr<autofill::AutofillWebDataService> GetWebDataService() override;
43 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; 49 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override;
44 scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() override; 50 scoped_refptr<syncer::ExtensionsActivity> GetExtensionsActivity() override;
45 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override; 51 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override;
46 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 52 base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
47 syncer::ModelType type) override; 53 syncer::ModelType type) override;
48 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( 54 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
49 syncer::ModelSafeGroup group, 55 syncer::ModelSafeGroup group,
50 syncer::WorkerLoopDestructionObserver* observer) override; 56 syncer::WorkerLoopDestructionObserver* observer) override;
51 sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override; 57 sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override;
52 58
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 BrowsingDataRemover::Observer* browsing_data_remover_observer_; 102 BrowsingDataRemover::Observer* browsing_data_remover_observer_;
97 103
98 base::WeakPtrFactory<ChromeSyncClient> weak_ptr_factory_; 104 base::WeakPtrFactory<ChromeSyncClient> weak_ptr_factory_;
99 105
100 DISALLOW_COPY_AND_ASSIGN(ChromeSyncClient); 106 DISALLOW_COPY_AND_ASSIGN(ChromeSyncClient);
101 }; 107 };
102 108
103 } // namespace browser_sync 109 } // namespace browser_sync
104 110
105 #endif // CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ 111 #endif // CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/chrome_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698