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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 const content::NotificationDetails& details) OVERRIDE; | 569 const content::NotificationDetails& details) OVERRIDE; |
570 | 570 |
571 // Changes which data types we're going to be syncing to |preferred_types|. | 571 // Changes which data types we're going to be syncing to |preferred_types|. |
572 // If it is running, the DataTypeManager will be instructed to reconfigure | 572 // If it is running, the DataTypeManager will be instructed to reconfigure |
573 // the sync backend so that exactly these datatypes are actively synced. See | 573 // the sync backend so that exactly these datatypes are actively synced. See |
574 // class comment for more on what it means for a datatype to be Preferred. | 574 // class comment for more on what it means for a datatype to be Preferred. |
575 virtual void ChangePreferredDataTypes( | 575 virtual void ChangePreferredDataTypes( |
576 syncer::ModelTypeSet preferred_types); | 576 syncer::ModelTypeSet preferred_types); |
577 | 577 |
578 // Returns the set of types which are preferred for enabling. This is a | 578 // Returns the set of types which are preferred for enabling. This is a |
579 // superset of the active types (see GetActiveTypes()). | 579 // superset of the active types (see GetActiveDataTypes()). |
580 virtual syncer::ModelTypeSet GetPreferredDataTypes() const; | 580 virtual syncer::ModelTypeSet GetPreferredDataTypes() const; |
581 | 581 |
582 // Gets the set of all data types that could be allowed (the set that | 582 // Gets the set of all data types that could be allowed (the set that |
583 // should be advertised to the user). These will typically only change | 583 // should be advertised to the user). These will typically only change |
584 // via a command-line option. See class comment for more on what it means | 584 // via a command-line option. See class comment for more on what it means |
585 // for a datatype to be Registered. | 585 // for a datatype to be Registered. |
586 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; | 586 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; |
587 | 587 |
588 // Checks whether the Cryptographer is ready to encrypt and decrypt updates | 588 // Checks whether the Cryptographer is ready to encrypt and decrypt updates |
589 // for sensitive data types. Caller must be holding a | 589 // for sensitive data types. Caller must be holding a |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 scoped_ptr<syncer::NetworkResources> network_resources_; | 1048 scoped_ptr<syncer::NetworkResources> network_resources_; |
1049 | 1049 |
1050 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1050 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1051 }; | 1051 }; |
1052 | 1052 |
1053 bool ShouldShowActionOnUI( | 1053 bool ShouldShowActionOnUI( |
1054 const syncer::SyncProtocolError& error); | 1054 const syncer::SyncProtocolError& error); |
1055 | 1055 |
1056 | 1056 |
1057 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1057 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |