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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
626 // Returns the set of types which are preferred for enabling. This is a | 626 // Returns the set of types which are preferred for enabling. This is a |
627 // superset of the active types (see GetActiveDataTypes()). | 627 // superset of the active types (see GetActiveDataTypes()). |
628 virtual syncer::ModelTypeSet GetPreferredDataTypes() const; | 628 virtual syncer::ModelTypeSet GetPreferredDataTypes() const; |
629 | 629 |
630 // Returns the set of directory types which are preferred for enabling. | 630 // Returns the set of directory types which are preferred for enabling. |
631 virtual syncer::ModelTypeSet GetPreferredDirectoryDataTypes() const; | 631 virtual syncer::ModelTypeSet GetPreferredDirectoryDataTypes() const; |
632 | 632 |
633 // Returns the set of off-thread types which are preferred for enabling. | 633 // Returns the set of off-thread types which are preferred for enabling. |
634 virtual syncer::ModelTypeSet GetPreferredNonBlockingDataTypes() const; | 634 virtual syncer::ModelTypeSet GetPreferredNonBlockingDataTypes() const; |
635 | 635 |
636 // Returns the set of types which are "preferred" programmatically and can | |
637 // not be disabled by the user. | |
638 virtual syncer::ModelTypeSet GetNonUserChoicePreferredDataTypes() const; | |
Marc Treib
2014/08/21 09:12:24
Any better ideas for what this should be called?
Bernhard Bauer
2014/08/21 15:00:06
GetForcedDataTypes?
Nicolas Zea
2014/08/21 23:33:54
SGTM
Marc Treib
2014/08/22 08:36:38
Done.
| |
639 | |
636 // Gets the set of all data types that could be allowed (the set that | 640 // Gets the set of all data types that could be allowed (the set that |
637 // should be advertised to the user). These will typically only change | 641 // should be advertised to the user). These will typically only change |
638 // via a command-line option. See class comment for more on what it means | 642 // via a command-line option. See class comment for more on what it means |
639 // for a datatype to be Registered. | 643 // for a datatype to be Registered. |
640 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; | 644 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; |
641 | 645 |
642 // Gets the set of directory types which could be allowed. | 646 // Gets the set of directory types which could be allowed. |
643 virtual syncer::ModelTypeSet GetRegisteredDirectoryDataTypes() const; | 647 virtual syncer::ModelTypeSet GetRegisteredDirectoryDataTypes() const; |
644 | 648 |
645 // Gets the set of off-thread types which could be allowed. | 649 // Gets the set of off-thread types which could be allowed. |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1156 scoped_ptr<base::Time> last_backup_time_; | 1160 scoped_ptr<base::Time> last_backup_time_; |
1157 | 1161 |
1158 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1162 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1159 }; | 1163 }; |
1160 | 1164 |
1161 bool ShouldShowActionOnUI( | 1165 bool ShouldShowActionOnUI( |
1162 const syncer::SyncProtocolError& error); | 1166 const syncer::SyncProtocolError& error); |
1163 | 1167 |
1164 | 1168 |
1165 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1169 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |