| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class ManagedUserSigninManagerWrapper; | 53 class ManagedUserSigninManagerWrapper; |
| 54 class Profile; | 54 class Profile; |
| 55 class ProfileOAuth2TokenService; | 55 class ProfileOAuth2TokenService; |
| 56 class ProfileSyncComponentsFactory; | 56 class ProfileSyncComponentsFactory; |
| 57 class SyncErrorController; | 57 class SyncErrorController; |
| 58 | 58 |
| 59 namespace base { | 59 namespace base { |
| 60 class CommandLine; | 60 class CommandLine; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 namespace extensions { | |
| 64 struct Event; | |
| 65 } | |
| 66 | |
| 67 namespace browser_sync { | 63 namespace browser_sync { |
| 68 class BackendMigrator; | 64 class BackendMigrator; |
| 69 class ChangeProcessor; | 65 class ChangeProcessor; |
| 70 class DataTypeManager; | 66 class DataTypeManager; |
| 71 class DeviceInfo; | 67 class DeviceInfo; |
| 72 class FaviconCache; | 68 class FaviconCache; |
| 73 class JsController; | 69 class JsController; |
| 74 class OpenTabsUIDelegate; | 70 class OpenTabsUIDelegate; |
| 75 | 71 |
| 76 namespace sessions { | 72 namespace sessions { |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 542 |
| 547 // Returns whether sync is managed, i.e. controlled by configuration | 543 // Returns whether sync is managed, i.e. controlled by configuration |
| 548 // management. If so, the user is not allowed to configure sync. | 544 // management. If so, the user is not allowed to configure sync. |
| 549 virtual bool IsManaged() const; | 545 virtual bool IsManaged() const; |
| 550 | 546 |
| 551 // syncer::UnrecoverableErrorHandler implementation. | 547 // syncer::UnrecoverableErrorHandler implementation. |
| 552 virtual void OnUnrecoverableError( | 548 virtual void OnUnrecoverableError( |
| 553 const tracked_objects::Location& from_here, | 549 const tracked_objects::Location& from_here, |
| 554 const std::string& message) OVERRIDE; | 550 const std::string& message) OVERRIDE; |
| 555 | 551 |
| 556 // Called when a datatype wishes to disable itself due to having hit an | 552 // Called when a datatype wishes to disable itself. Note, this does not change |
| 557 // unrecoverable error. | 553 // preferred state of a datatype and is not persisted across restarts. |
| 558 virtual void DisableBrokenDatatype( | 554 virtual void DisableDatatype(syncer::ModelType type, |
| 559 syncer::ModelType type, | 555 const tracked_objects::Location& from_here, |
| 560 const tracked_objects::Location& from_here, | 556 std::string message); |
| 561 std::string message); | 557 |
| 558 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does |
| 559 // not change the preferred state of a datatype, and is not persisted across |
| 560 // restarts. |
| 561 void ReenableDatatype(syncer::ModelType type); |
| 562 | 562 |
| 563 // The functions below (until ActivateDataType()) should only be | 563 // The functions below (until ActivateDataType()) should only be |
| 564 // called if sync_initialized() is true. | 564 // called if sync_initialized() is true. |
| 565 | 565 |
| 566 // TODO(akalin): This is called mostly by ModelAssociators and | 566 // TODO(akalin): This is called mostly by ModelAssociators and |
| 567 // tests. Figure out how to pass the handle to the ModelAssociators | 567 // tests. Figure out how to pass the handle to the ModelAssociators |
| 568 // directly, figure out how to expose this to tests, and remove this | 568 // directly, figure out how to expose this to tests, and remove this |
| 569 // function. | 569 // function. |
| 570 virtual syncer::UserShare* GetUserShare() const; | 570 virtual syncer::UserShare* GetUserShare() const; |
| 571 | 571 |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 base::Callback<void(Profile*, base::Time, base::Time)> clear_browsing_data_; | 1123 base::Callback<void(Profile*, base::Time, base::Time)> clear_browsing_data_; |
| 1124 | 1124 |
| 1125 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1125 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1126 }; | 1126 }; |
| 1127 | 1127 |
| 1128 bool ShouldShowActionOnUI( | 1128 bool ShouldShowActionOnUI( |
| 1129 const syncer::SyncProtocolError& error); | 1129 const syncer::SyncProtocolError& error); |
| 1130 | 1130 |
| 1131 | 1131 |
| 1132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |