| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 class NotificationSource; | 38 class NotificationSource; |
| 39 class Profile; | 39 class Profile; |
| 40 class ProfileSyncFactory; | 40 class ProfileSyncFactory; |
| 41 class SigninManager; | 41 class SigninManager; |
| 42 | 42 |
| 43 namespace browser_sync { | 43 namespace browser_sync { |
| 44 class BackendMigrator; | 44 class BackendMigrator; |
| 45 class ChangeProcessor; | 45 class ChangeProcessor; |
| 46 class DataTypeManager; | 46 class DataTypeManager; |
| 47 class JsFrontend; | 47 class JsFrontend; |
| 48 class NewAssociatorInterface; |
| 48 class SessionModelAssociator; | 49 class SessionModelAssociator; |
| 49 namespace sessions { struct SyncSessionSnapshot; } | 50 namespace sessions { struct SyncSessionSnapshot; } |
| 50 } | 51 } |
| 51 | 52 |
| 52 namespace sync_api { | 53 namespace sync_api { |
| 53 class BaseTransaction; | 54 class BaseTransaction; |
| 54 struct SyncCredentials; | 55 struct SyncCredentials; |
| 55 struct UserShare; | 56 struct UserShare; |
| 56 } | 57 } |
| 57 | 58 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 void SetAutofillMigrationState( | 375 void SetAutofillMigrationState( |
| 375 syncable::AutofillMigrationState state); | 376 syncable::AutofillMigrationState state); |
| 376 | 377 |
| 377 syncable::AutofillMigrationDebugInfo | 378 syncable::AutofillMigrationDebugInfo |
| 378 GetAutofillMigrationDebugInfo(); | 379 GetAutofillMigrationDebugInfo(); |
| 379 | 380 |
| 380 void SetAutofillMigrationDebugInfo( | 381 void SetAutofillMigrationDebugInfo( |
| 381 syncable::AutofillMigrationDebugInfo::PropertyToSet property_to_set, | 382 syncable::AutofillMigrationDebugInfo::PropertyToSet property_to_set, |
| 382 const syncable::AutofillMigrationDebugInfo& info); | 383 const syncable::AutofillMigrationDebugInfo& info); |
| 383 | 384 |
| 385 // Register a model associator with the profile sync service. This will |
| 386 // link the associator to the datatype controller corresponding to |
| 387 // associator's type. If the datatype controller does not exist, the request |
| 388 // is dropped silently. |
| 389 virtual void RegisterModelAssociator( |
| 390 browser_sync::NewAssociatorInterface* associator); |
| 391 |
| 384 virtual void ActivateDataType( | 392 virtual void ActivateDataType( |
| 385 browser_sync::DataTypeController* data_type_controller, | 393 browser_sync::DataTypeController* data_type_controller, |
| 386 browser_sync::ChangeProcessor* change_processor); | 394 browser_sync::ChangeProcessor* change_processor); |
| 387 virtual void DeactivateDataType( | 395 virtual void DeactivateDataType( |
| 388 browser_sync::DataTypeController* data_type_controller, | 396 browser_sync::DataTypeController* data_type_controller, |
| 389 browser_sync::ChangeProcessor* change_processor); | 397 browser_sync::ChangeProcessor* change_processor); |
| 390 | 398 |
| 391 // NotificationObserver implementation. | 399 // NotificationObserver implementation. |
| 392 virtual void Observe(NotificationType type, | 400 virtual void Observe(NotificationType type, |
| 393 const NotificationSource& source, | 401 const NotificationSource& source, |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 // The set of encrypted types. This is updated whenever datatypes are | 646 // The set of encrypted types. This is updated whenever datatypes are |
| 639 // encrypted through the OnEncryptionComplete callback of SyncFrontend. | 647 // encrypted through the OnEncryptionComplete callback of SyncFrontend. |
| 640 syncable::ModelTypeSet encrypted_types_; | 648 syncable::ModelTypeSet encrypted_types_; |
| 641 | 649 |
| 642 scoped_ptr<browser_sync::BackendMigrator> migrator_; | 650 scoped_ptr<browser_sync::BackendMigrator> migrator_; |
| 643 | 651 |
| 644 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 652 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 645 }; | 653 }; |
| 646 | 654 |
| 647 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 655 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |