| 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 551 |
| 552 // Returns whether sync is managed, i.e. controlled by configuration | 552 // Returns whether sync is managed, i.e. controlled by configuration |
| 553 // management. If so, the user is not allowed to configure sync. | 553 // management. If so, the user is not allowed to configure sync. |
| 554 virtual bool IsManaged() const; | 554 virtual bool IsManaged() const; |
| 555 | 555 |
| 556 // syncer::UnrecoverableErrorHandler implementation. | 556 // syncer::UnrecoverableErrorHandler implementation. |
| 557 virtual void OnUnrecoverableError( | 557 virtual void OnUnrecoverableError( |
| 558 const tracked_objects::Location& from_here, | 558 const tracked_objects::Location& from_here, |
| 559 const std::string& message) OVERRIDE; | 559 const std::string& message) OVERRIDE; |
| 560 | 560 |
| 561 // Called when a datatype wishes to disable itself. The datatype to be | |
| 562 // disabled is passed via |error.model_type()|. Note, this does not change | |
| 563 // preferred state of a datatype and is not persisted across restarts. | |
| 564 virtual void DisableDatatype(const syncer::SyncError& error); | |
| 565 | |
| 566 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does | 561 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does |
| 567 // not change the preferred state of a datatype, and is not persisted across | 562 // not change the preferred state of a datatype, and is not persisted across |
| 568 // restarts. | 563 // restarts. |
| 569 void ReenableDatatype(syncer::ModelType type); | 564 void ReenableDatatype(syncer::ModelType type); |
| 570 | 565 |
| 571 // The functions below (until ActivateDataType()) should only be | 566 // The functions below (until ActivateDataType()) should only be |
| 572 // called if sync_initialized() is true. | 567 // called if sync_initialized() is true. |
| 573 | 568 |
| 574 // TODO(akalin): This is called mostly by ModelAssociators and | 569 // TODO(akalin): This is called mostly by ModelAssociators and |
| 575 // tests. Figure out how to pass the handle to the ModelAssociators | 570 // tests. Figure out how to pass the handle to the ModelAssociators |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 scoped_ptr<base::Time> last_backup_time_; | 1147 scoped_ptr<base::Time> last_backup_time_; |
| 1153 | 1148 |
| 1154 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1149 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1155 }; | 1150 }; |
| 1156 | 1151 |
| 1157 bool ShouldShowActionOnUI( | 1152 bool ShouldShowActionOnUI( |
| 1158 const syncer::SyncProtocolError& error); | 1153 const syncer::SyncProtocolError& error); |
| 1159 | 1154 |
| 1160 | 1155 |
| 1161 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1156 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |