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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 // Get the current routing information for all enabled model types. | 382 // Get the current routing information for all enabled model types. |
383 // If a model type is not enabled (that is, if the syncer should not | 383 // If a model type is not enabled (that is, if the syncer should not |
384 // be trying to sync it), it is not in this map. | 384 // be trying to sync it), it is not in this map. |
385 // | 385 // |
386 // TODO(akalin): This function is used by | 386 // TODO(akalin): This function is used by |
387 // sync_ui_util::ConstructAboutInformation() and by some test | 387 // sync_ui_util::ConstructAboutInformation() and by some test |
388 // classes. Figure out a different way to expose this info and | 388 // classes. Figure out a different way to expose this info and |
389 // remove this function. | 389 // remove this function. |
390 void GetModelSafeRoutingInfo(browser_sync::ModelSafeRoutingInfo* out); | 390 void GetModelSafeRoutingInfo(browser_sync::ModelSafeRoutingInfo* out); |
391 | 391 |
392 // Overridden by tests. | |
392 // TODO(zea): Remove these and have the dtc's call directly into the SBH. | 393 // TODO(zea): Remove these and have the dtc's call directly into the SBH. |
393 virtual void ActivateDataType( | 394 virtual void ActivateDataType( |
394 browser_sync::DataTypeController* data_type_controller, | 395 syncable::ModelType type, browser_sync::ModelSafeGroup group, |
395 browser_sync::ChangeProcessor* change_processor); | 396 browser_sync::ChangeProcessor* change_processor); |
396 virtual void DeactivateDataType( | 397 virtual void DeactivateDataType(syncable::ModelType type); |
tim (not reviewing)
2011/08/10 23:39:08
See that todo up there? ;)
akalin
2011/08/10 23:41:49
Future CL. If I remove these, then I'd have to so
| |
397 browser_sync::DataTypeController* data_type_controller, | |
398 browser_sync::ChangeProcessor* change_processor); | |
399 | 398 |
400 // NotificationObserver implementation. | 399 // NotificationObserver implementation. |
401 virtual void Observe(int type, | 400 virtual void Observe(int type, |
402 const NotificationSource& source, | 401 const NotificationSource& source, |
403 const NotificationDetails& details); | 402 const NotificationDetails& details); |
404 | 403 |
405 // Changes which data types we're going to be syncing to |preferred_types|. | 404 // Changes which data types we're going to be syncing to |preferred_types|. |
406 // If it is running, the DataTypeManager will be instructed to reconfigure | 405 // If it is running, the DataTypeManager will be instructed to reconfigure |
407 // the sync backend so that exactly these datatypes are actively synced. See | 406 // the sync backend so that exactly these datatypes are actively synced. See |
408 // class comment for more on what it means for a datatype to be Preferred. | 407 // class comment for more on what it means for a datatype to be Preferred. |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
641 // and cached until the syncer either finishes encryption | 640 // and cached until the syncer either finishes encryption |
642 // (OnEncryptionComplete) or the user cancels. | 641 // (OnEncryptionComplete) or the user cancels. |
643 syncable::ModelTypeSet pending_types_for_encryption_; | 642 syncable::ModelTypeSet pending_types_for_encryption_; |
644 | 643 |
645 scoped_ptr<browser_sync::BackendMigrator> migrator_; | 644 scoped_ptr<browser_sync::BackendMigrator> migrator_; |
646 | 645 |
647 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 646 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
648 }; | 647 }; |
649 | 648 |
650 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 649 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |