Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: components/sync/base/model_type.h

Issue 2241583003: Creating protobuf for reading list sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link message to code Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // 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 COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 9 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
10 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 10 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // App List items 126 // App List items
127 APP_LIST, 127 APP_LIST,
128 // WiFi credentials. Each item contains the information for connecting to one 128 // WiFi credentials. Each item contains the information for connecting to one
129 // WiFi network. This includes, e.g., network name and password. 129 // WiFi network. This includes, e.g., network name and password.
130 WIFI_CREDENTIALS, 130 WIFI_CREDENTIALS,
131 // Supervised user whitelists. Each item contains a CRX ID (like an extension 131 // Supervised user whitelists. Each item contains a CRX ID (like an extension
132 // ID) and a name. 132 // ID) and a name.
133 SUPERVISED_USER_WHITELISTS, 133 SUPERVISED_USER_WHITELISTS,
134 // Arc Package items. 134 // Arc Package items.
135 ARC_PACKAGE, 135 ARC_PACKAGE,
136 // Reading list items.
137 READING_LIST,
136 138
137 // ---- Proxy types ---- 139 // ---- Proxy types ----
138 // Proxy types are excluded from the sync protocol, but are still considered 140 // Proxy types are excluded from the sync protocol, but are still considered
139 // real user types. By convention, we prefix them with 'PROXY_' to distinguish 141 // real user types. By convention, we prefix them with 'PROXY_' to distinguish
140 // them from normal protocol types. 142 // them from normal protocol types.
141 143
142 // Tab sync. This is a placeholder type, so that Sessions can be implicitly 144 // Tab sync. This is a placeholder type, so that Sessions can be implicitly
143 // enabled for history sync and tabs sync. 145 // enabled for history sync and tabs sync.
144 PROXY_TABS, 146 PROXY_TABS,
145 FIRST_PROXY_TYPE = PROXY_TABS, 147 FIRST_PROXY_TYPE = PROXY_TABS,
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 356
355 // Returns true if |model_type| supports parent-child hierarchy or entries. 357 // Returns true if |model_type| supports parent-child hierarchy or entries.
356 SYNC_EXPORT bool TypeSupportsHierarchy(ModelType model_type); 358 SYNC_EXPORT bool TypeSupportsHierarchy(ModelType model_type);
357 359
358 // Returns true if |model_type| supports ordering of sibling entries. 360 // Returns true if |model_type| supports ordering of sibling entries.
359 SYNC_EXPORT bool TypeSupportsOrdering(ModelType model_type); 361 SYNC_EXPORT bool TypeSupportsOrdering(ModelType model_type);
360 362
361 } // namespace syncer 363 } // namespace syncer
362 364
363 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 365 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698