OLD | NEW |
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 IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ | 5 #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ |
6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ | 6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/files/file_path.h" |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "components/sync/driver/sync_client.h" | 14 #include "components/sync/driver/sync_client.h" |
14 | 15 |
15 namespace autofill { | 16 namespace autofill { |
16 class AutofillWebDataService; | 17 class AutofillWebDataService; |
17 } | 18 } |
18 | 19 |
19 namespace ios { | 20 namespace ios { |
20 class ChromeBrowserState; | 21 class ChromeBrowserState; |
(...skipping 11 matching lines...) Expand all Loading... |
32 | 33 |
33 class IOSChromeSyncClient : public syncer::SyncClient { | 34 class IOSChromeSyncClient : public syncer::SyncClient { |
34 public: | 35 public: |
35 explicit IOSChromeSyncClient(ios::ChromeBrowserState* browser_state); | 36 explicit IOSChromeSyncClient(ios::ChromeBrowserState* browser_state); |
36 ~IOSChromeSyncClient() override; | 37 ~IOSChromeSyncClient() override; |
37 | 38 |
38 // SyncClient implementation. | 39 // SyncClient implementation. |
39 void Initialize() override; | 40 void Initialize() override; |
40 syncer::SyncService* GetSyncService() override; | 41 syncer::SyncService* GetSyncService() override; |
41 PrefService* GetPrefService() override; | 42 PrefService* GetPrefService() override; |
| 43 base::FilePath GetLocalSyncBackendFolder() override; |
42 bookmarks::BookmarkModel* GetBookmarkModel() override; | 44 bookmarks::BookmarkModel* GetBookmarkModel() override; |
43 favicon::FaviconService* GetFaviconService() override; | 45 favicon::FaviconService* GetFaviconService() override; |
44 history::HistoryService* GetHistoryService() override; | 46 history::HistoryService* GetHistoryService() override; |
45 bool HasPasswordStore() override; | 47 bool HasPasswordStore() override; |
46 base::Closure GetPasswordStateChangedCallback() override; | 48 base::Closure GetPasswordStateChangedCallback() override; |
47 syncer::SyncApiComponentFactory::RegisterDataTypesMethod | 49 syncer::SyncApiComponentFactory::RegisterDataTypesMethod |
48 GetRegisterPlatformTypesCallback() override; | 50 GetRegisterPlatformTypesCallback() override; |
49 autofill::PersonalDataManager* GetPersonalDataManager() override; | 51 autofill::PersonalDataManager* GetPersonalDataManager() override; |
50 invalidation::InvalidationService* GetInvalidationService() override; | 52 invalidation::InvalidationService* GetInvalidationService() override; |
51 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; | 53 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; |
(...skipping 26 matching lines...) Expand all Loading... |
78 scoped_refptr<password_manager::PasswordStore> password_store_; | 80 scoped_refptr<password_manager::PasswordStore> password_store_; |
79 | 81 |
80 std::unique_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_; | 82 std::unique_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_; |
81 | 83 |
82 base::WeakPtrFactory<IOSChromeSyncClient> weak_ptr_factory_; | 84 base::WeakPtrFactory<IOSChromeSyncClient> weak_ptr_factory_; |
83 | 85 |
84 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncClient); | 86 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncClient); |
85 }; | 87 }; |
86 | 88 |
87 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ | 89 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ |
OLD | NEW |