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 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 | 60 |
61 // Initializes the sync client with the specified sync service. | 61 // Initializes the sync client with the specified sync service. |
62 virtual void Initialize() = 0; | 62 virtual void Initialize() = 0; |
63 | 63 |
64 // Returns the current SyncService instance. | 64 // Returns the current SyncService instance. |
65 virtual SyncService* GetSyncService() = 0; | 65 virtual SyncService* GetSyncService() = 0; |
66 | 66 |
67 // Returns the current profile's preference service. | 67 // Returns the current profile's preference service. |
68 virtual PrefService* GetPrefService() = 0; | 68 virtual PrefService* GetPrefService() = 0; |
69 | 69 |
70 // Returns the path to the folder used for storing the local sync database. | |
71 // It is only used when sync is running against its local backend. | |
Nicolas Zea
2017/02/27 19:21:26
nit: "its local backend" -> "a local backend"
pastarmovj
2017/02/28 17:22:33
Done.
| |
72 virtual base::FilePath GetLocalSyncBackendFolder() = 0; | |
73 | |
70 // DataType specific service getters. | 74 // DataType specific service getters. |
71 virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0; | 75 virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0; |
72 virtual favicon::FaviconService* GetFaviconService() = 0; | 76 virtual favicon::FaviconService* GetFaviconService() = 0; |
73 virtual history::HistoryService* GetHistoryService() = 0; | 77 virtual history::HistoryService* GetHistoryService() = 0; |
74 virtual bool HasPasswordStore() = 0; | 78 virtual bool HasPasswordStore() = 0; |
75 | 79 |
76 // Returns a callback that will register the types specific to the current | 80 // Returns a callback that will register the types specific to the current |
77 // platform. | 81 // platform. |
78 virtual SyncApiComponentFactory::RegisterDataTypesMethod | 82 virtual SyncApiComponentFactory::RegisterDataTypesMethod |
79 GetRegisterPlatformTypesCallback() = 0; | 83 GetRegisterPlatformTypesCallback() = 0; |
(...skipping 29 matching lines...) Expand all Loading... | |
109 // Returns the current SyncApiComponentFactory instance. | 113 // Returns the current SyncApiComponentFactory instance. |
110 virtual SyncApiComponentFactory* GetSyncApiComponentFactory() = 0; | 114 virtual SyncApiComponentFactory* GetSyncApiComponentFactory() = 0; |
111 | 115 |
112 private: | 116 private: |
113 DISALLOW_COPY_AND_ASSIGN(SyncClient); | 117 DISALLOW_COPY_AND_ASSIGN(SyncClient); |
114 }; | 118 }; |
115 | 119 |
116 } // namespace syncer | 120 } // namespace syncer |
117 | 121 |
118 #endif // COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_ | 122 #endif // COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_ |
OLD | NEW |