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

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: rebase Created 4 years, 3 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // WiFi credentials. Each item contains the information for connecting to one 127 // WiFi credentials. Each item contains the information for connecting to one
128 // WiFi network. This includes, e.g., network name and password. 128 // WiFi network. This includes, e.g., network name and password.
129 WIFI_CREDENTIALS, 129 WIFI_CREDENTIALS,
130 // Supervised user whitelists. Each item contains a CRX ID (like an extension 130 // Supervised user whitelists. Each item contains a CRX ID (like an extension
131 // ID) and a name. 131 // ID) and a name.
132 SUPERVISED_USER_WHITELISTS, 132 SUPERVISED_USER_WHITELISTS,
133 // Arc Package items. 133 // Arc Package items.
134 ARC_PACKAGE, 134 ARC_PACKAGE,
135 // Printer device information. 135 // Printer device information.
136 PRINTERS, 136 PRINTERS,
137 // Reading list items.
138 READING_LIST,
137 139
138 // ---- Proxy types ---- 140 // ---- Proxy types ----
139 // Proxy types are excluded from the sync protocol, but are still considered 141 // Proxy types are excluded from the sync protocol, but are still considered
140 // real user types. By convention, we prefix them with 'PROXY_' to distinguish 142 // real user types. By convention, we prefix them with 'PROXY_' to distinguish
141 // them from normal protocol types. 143 // them from normal protocol types.
142 144
143 // Tab sync. This is a placeholder type, so that Sessions can be implicitly 145 // Tab sync. This is a placeholder type, so that Sessions can be implicitly
144 // enabled for history sync and tabs sync. 146 // enabled for history sync and tabs sync.
145 PROXY_TABS, 147 PROXY_TABS,
146 FIRST_PROXY_TYPE = PROXY_TABS, 148 FIRST_PROXY_TYPE = PROXY_TABS,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 351
350 // Returns true if |model_type| supports parent-child hierarchy or entries. 352 // Returns true if |model_type| supports parent-child hierarchy or entries.
351 bool TypeSupportsHierarchy(ModelType model_type); 353 bool TypeSupportsHierarchy(ModelType model_type);
352 354
353 // Returns true if |model_type| supports ordering of sibling entries. 355 // Returns true if |model_type| supports ordering of sibling entries.
354 bool TypeSupportsOrdering(ModelType model_type); 356 bool TypeSupportsOrdering(ModelType model_type);
355 357
356 } // namespace syncer 358 } // namespace syncer
357 359
358 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 360 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
OLDNEW
« no previous file with comments | « components/sync/base/data_type_histogram.h ('k') | components/sync/driver/model_association_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698