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 // Enumerate the various item subtypes that are supported by sync. | 5 // Enumerate the various item subtypes that are supported by sync. |
6 // Each sync object is expected to have an immutable object type. | 6 // Each sync object is expected to have an immutable object type. |
7 // An object's type is inferred from the type of data it holds. | 7 // An object's type is inferred from the type of data it holds. |
8 | 8 |
9 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ | 9 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ |
10 #define CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ | 10 #define CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 AUTOFILL_PROFILE, | 56 AUTOFILL_PROFILE, |
57 // An autofill folder or an autofill object. | 57 // An autofill folder or an autofill object. |
58 AUTOFILL, | 58 AUTOFILL, |
59 | 59 |
60 // A themes folder or a themes object. | 60 // A themes folder or a themes object. |
61 THEMES, | 61 THEMES, |
62 // A typed_url folder or a typed_url object. | 62 // A typed_url folder or a typed_url object. |
63 TYPED_URLS, | 63 TYPED_URLS, |
64 // An extension folder or an extension object. | 64 // An extension folder or an extension object. |
65 EXTENSIONS, | 65 EXTENSIONS, |
66 // An object represeting a set of Nigori keys. | 66 // An object representing a set of Nigori keys. |
67 NIGORI, | 67 NIGORI, |
| 68 // An object representing a custom search engine. |
| 69 SEARCH_ENGINES, |
68 // An object representing a browser session. | 70 // An object representing a browser session. |
69 SESSIONS, | 71 SESSIONS, |
70 // An app folder or an app object. | 72 // An app folder or an app object. |
71 APPS, | 73 APPS, |
72 | 74 |
73 MODEL_TYPE_COUNT, | 75 MODEL_TYPE_COUNT, |
74 }; | 76 }; |
75 | 77 |
76 typedef std::bitset<MODEL_TYPE_COUNT> ModelTypeBitSet; | 78 typedef std::bitset<MODEL_TYPE_COUNT> ModelTypeBitSet; |
77 typedef std::set<ModelType> ModelTypeSet; | 79 typedef std::set<ModelType> ModelTypeSet; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 152 |
151 // Converts a notification type to a real model type. Returns true | 153 // Converts a notification type to a real model type. Returns true |
152 // iff |notification_type| was the notification type of a real model | 154 // iff |notification_type| was the notification type of a real model |
153 // type and |model_type| was filled in. | 155 // type and |model_type| was filled in. |
154 bool NotificationTypeToRealModelType(const std::string& notification_type, | 156 bool NotificationTypeToRealModelType(const std::string& notification_type, |
155 ModelType* model_type); | 157 ModelType* model_type); |
156 | 158 |
157 } // namespace syncable | 159 } // namespace syncable |
158 | 160 |
159 #endif // CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ | 161 #endif // CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ |
OLD | NEW |