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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // DataType specific service getters. | 70 // DataType specific service getters. |
71 virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0; | 71 virtual bookmarks::BookmarkModel* GetBookmarkModel() = 0; |
72 virtual favicon::FaviconService* GetFaviconService() = 0; | 72 virtual favicon::FaviconService* GetFaviconService() = 0; |
73 virtual history::HistoryService* GetHistoryService() = 0; | 73 virtual history::HistoryService* GetHistoryService() = 0; |
| 74 virtual bool HasPasswordStore() = 0; |
74 | 75 |
75 // Returns a callback that will register the types specific to the current | 76 // Returns a callback that will register the types specific to the current |
76 // platform. | 77 // platform. |
77 virtual SyncApiComponentFactory::RegisterDataTypesMethod | 78 virtual SyncApiComponentFactory::RegisterDataTypesMethod |
78 GetRegisterPlatformTypesCallback() = 0; | 79 GetRegisterPlatformTypesCallback() = 0; |
79 | 80 |
80 // Returns a callback that will be invoked when password sync state has | 81 // Returns a callback that will be invoked when password sync state has |
81 // potentially been changed. | 82 // potentially been changed. |
82 virtual base::Closure GetPasswordStateChangedCallback() = 0; | 83 virtual base::Closure GetPasswordStateChangedCallback() = 0; |
83 | 84 |
(...skipping 24 matching lines...) Expand all Loading... |
108 // Returns the current SyncApiComponentFactory instance. | 109 // Returns the current SyncApiComponentFactory instance. |
109 virtual SyncApiComponentFactory* GetSyncApiComponentFactory() = 0; | 110 virtual SyncApiComponentFactory* GetSyncApiComponentFactory() = 0; |
110 | 111 |
111 private: | 112 private: |
112 DISALLOW_COPY_AND_ASSIGN(SyncClient); | 113 DISALLOW_COPY_AND_ASSIGN(SyncClient); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace syncer | 116 } // namespace syncer |
116 | 117 |
117 #endif // COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_ | 118 #endif // COMPONENTS_SYNC_DRIVER_SYNC_CLIENT_H_ |
OLD | NEW |