| 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 void Initialize(); | 282 void Initialize(); |
| 283 | 283 |
| 284 virtual void SetSyncSetupCompleted(); | 284 virtual void SetSyncSetupCompleted(); |
| 285 | 285 |
| 286 // ProfileSyncServiceBase implementation. | 286 // ProfileSyncServiceBase implementation. |
| 287 bool HasSyncSetupCompleted() const override; | 287 bool HasSyncSetupCompleted() const override; |
| 288 bool SyncActive() const override; | 288 bool SyncActive() const override; |
| 289 syncer::ModelTypeSet GetActiveDataTypes() const override; | 289 syncer::ModelTypeSet GetActiveDataTypes() const override; |
| 290 void AddObserver(ProfileSyncServiceBase::Observer* observer) override; | 290 void AddObserver(ProfileSyncServiceBase::Observer* observer) override; |
| 291 void RemoveObserver(ProfileSyncServiceBase::Observer* observer) override; | 291 void RemoveObserver(ProfileSyncServiceBase::Observer* observer) override; |
| 292 bool HasObserver(ProfileSyncServiceBase::Observer* observer) const override; | 292 bool HasObserver( |
| 293 const ProfileSyncServiceBase::Observer* observer) const override; |
| 293 | 294 |
| 294 void AddProtocolEventObserver(browser_sync::ProtocolEventObserver* observer); | 295 void AddProtocolEventObserver(browser_sync::ProtocolEventObserver* observer); |
| 295 void RemoveProtocolEventObserver( | 296 void RemoveProtocolEventObserver( |
| 296 browser_sync::ProtocolEventObserver* observer); | 297 browser_sync::ProtocolEventObserver* observer); |
| 297 | 298 |
| 298 void AddTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer); | 299 void AddTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer); |
| 299 void RemoveTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer); | 300 void RemoveTypeDebugInfoObserver(syncer::TypeDebugInfoObserver* observer); |
| 300 | 301 |
| 301 // Add a sync type preference provider. Each provider may only be added once. | 302 // Add a sync type preference provider. Each provider may only be added once. |
| 302 void AddPreferenceProvider(SyncTypePreferenceProvider* provider); | 303 void AddPreferenceProvider(SyncTypePreferenceProvider* provider); |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1158 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
| 1158 | 1159 |
| 1159 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1160 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1160 }; | 1161 }; |
| 1161 | 1162 |
| 1162 bool ShouldShowActionOnUI( | 1163 bool ShouldShowActionOnUI( |
| 1163 const syncer::SyncProtocolError& error); | 1164 const syncer::SyncProtocolError& error); |
| 1164 | 1165 |
| 1165 | 1166 |
| 1166 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1167 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |