OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 class ProfileSyncService : public syncer::SyncServiceBase, | 169 class ProfileSyncService : public syncer::SyncServiceBase, |
170 public syncer::SyncPrefObserver, | 170 public syncer::SyncPrefObserver, |
171 public syncer::DataTypeManagerObserver, | 171 public syncer::DataTypeManagerObserver, |
172 public syncer::UnrecoverableErrorHandler, | 172 public syncer::UnrecoverableErrorHandler, |
173 public KeyedService, | 173 public KeyedService, |
174 public OAuth2TokenService::Consumer, | 174 public OAuth2TokenService::Consumer, |
175 public OAuth2TokenService::Observer, | 175 public OAuth2TokenService::Observer, |
176 public SigninManagerBase::Observer, | 176 public SigninManagerBase::Observer, |
177 public GaiaCookieManagerService::Observer { | 177 public GaiaCookieManagerService::Observer { |
178 public: | 178 public: |
179 typedef syncer::SyncEngine::Status Status; | 179 using Status = syncer::SyncEngine::Status; |
180 typedef base::Callback<bool(void)> PlatformSyncAllowedProvider; | 180 using PlatformSyncAllowedProvider = base::Callback<bool(void)>; |
181 | 181 |
182 enum SyncEventCodes { | 182 enum SyncEventCodes { |
183 MIN_SYNC_EVENT_CODE = 0, | 183 MIN_SYNC_EVENT_CODE = 0, |
184 | 184 |
185 // Events starting the sync service. | 185 // Events starting the sync service. |
186 START_FROM_NTP = 1, // Sync was started from the ad in NTP | 186 START_FROM_NTP = 1, // Sync was started from the ad in NTP |
187 START_FROM_WRENCH = 2, // Sync was started from the Wrench menu. | 187 START_FROM_WRENCH = 2, // Sync was started from the Wrench menu. |
188 START_FROM_OPTIONS = 3, // Sync was started from Wrench->Options. | 188 START_FROM_OPTIONS = 3, // Sync was started from Wrench->Options. |
189 START_FROM_BOOKMARK_MANAGER = 4, // Sync was started from Bookmark manager. | 189 START_FROM_BOOKMARK_MANAGER = 4, // Sync was started from Bookmark manager. |
190 START_FROM_PROFILE_MENU = 5, // Sync was started from multiprofile menu. | 190 START_FROM_PROFILE_MENU = 5, // Sync was started from multiprofile menu. |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 892 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
893 | 893 |
894 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 894 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
895 }; | 895 }; |
896 | 896 |
897 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 897 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
898 | 898 |
899 } // namespace browser_sync | 899 } // namespace browser_sync |
900 | 900 |
901 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 901 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |