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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // Returns the set of types which are preferred for enabling. This is a | 627 // Returns the set of types which are preferred for enabling. This is a |
628 // superset of the active types (see GetActiveDataTypes()). | 628 // superset of the active types (see GetActiveDataTypes()). |
629 virtual syncer::ModelTypeSet GetPreferredDataTypes() const; | 629 virtual syncer::ModelTypeSet GetPreferredDataTypes() const; |
630 | 630 |
631 // Returns the set of directory types which are preferred for enabling. | 631 // Returns the set of directory types which are preferred for enabling. |
632 virtual syncer::ModelTypeSet GetPreferredDirectoryDataTypes() const; | 632 virtual syncer::ModelTypeSet GetPreferredDirectoryDataTypes() const; |
633 | 633 |
634 // Returns the set of off-thread types which are preferred for enabling. | 634 // Returns the set of off-thread types which are preferred for enabling. |
635 virtual syncer::ModelTypeSet GetPreferredNonBlockingDataTypes() const; | 635 virtual syncer::ModelTypeSet GetPreferredNonBlockingDataTypes() const; |
636 | 636 |
| 637 // Returns the set of types which are enforced programmatically and can not |
| 638 // be disabled by the user. |
| 639 virtual syncer::ModelTypeSet GetForcedDataTypes() const; |
| 640 |
637 // Gets the set of all data types that could be allowed (the set that | 641 // Gets the set of all data types that could be allowed (the set that |
638 // should be advertised to the user). These will typically only change | 642 // should be advertised to the user). These will typically only change |
639 // via a command-line option. See class comment for more on what it means | 643 // via a command-line option. See class comment for more on what it means |
640 // for a datatype to be Registered. | 644 // for a datatype to be Registered. |
641 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; | 645 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; |
642 | 646 |
643 // Gets the set of directory types which could be allowed. | 647 // Gets the set of directory types which could be allowed. |
644 virtual syncer::ModelTypeSet GetRegisteredDirectoryDataTypes() const; | 648 virtual syncer::ModelTypeSet GetRegisteredDirectoryDataTypes() const; |
645 | 649 |
646 // Gets the set of off-thread types which could be allowed. | 650 // Gets the set of off-thread types which could be allowed. |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1169 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
1166 | 1170 |
1167 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1171 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1168 }; | 1172 }; |
1169 | 1173 |
1170 bool ShouldShowActionOnUI( | 1174 bool ShouldShowActionOnUI( |
1171 const syncer::SyncProtocolError& error); | 1175 const syncer::SyncProtocolError& error); |
1172 | 1176 |
1173 | 1177 |
1174 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1178 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |