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

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: remove period 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // App List items 125 // App List items
126 APP_LIST, 126 APP_LIST,
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 // Reading list items.
136 READING_LIST,
135 137
136 // ---- Proxy types ---- 138 // ---- Proxy types ----
137 // Proxy types are excluded from the sync protocol, but are still considered 139 // Proxy types are excluded from the sync protocol, but are still considered
138 // real user types. By convention, we prefix them with 'PROXY_' to distinguish 140 // real user types. By convention, we prefix them with 'PROXY_' to distinguish
139 // them from normal protocol types. 141 // them from normal protocol types.
140 142
141 // Tab sync. This is a placeholder type, so that Sessions can be implicitly 143 // Tab sync. This is a placeholder type, so that Sessions can be implicitly
142 // enabled for history sync and tabs sync. 144 // enabled for history sync and tabs sync.
143 PROXY_TABS, 145 PROXY_TABS,
144 FIRST_PROXY_TYPE = PROXY_TABS, 146 FIRST_PROXY_TYPE = PROXY_TABS,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 349
348 // Returns true if |model_type| supports parent-child hierarchy or entries. 350 // Returns true if |model_type| supports parent-child hierarchy or entries.
349 bool TypeSupportsHierarchy(ModelType model_type); 351 bool TypeSupportsHierarchy(ModelType model_type);
350 352
351 // Returns true if |model_type| supports ordering of sibling entries. 353 // Returns true if |model_type| supports ordering of sibling entries.
352 bool TypeSupportsOrdering(ModelType model_type); 354 bool TypeSupportsOrdering(ModelType model_type);
353 355
354 } // namespace syncer 356 } // namespace syncer
355 357
356 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 358 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
OLDNEW
« no previous file with comments | « no previous file | components/sync/protocol/reading_list_specifics.proto » ('j') | components/sync/syncable/model_type.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698